mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Do not skip win32 errors on non-win32 systems - print as "unknown Win32"
This commit is contained in:
parent
6f0e5e11ed
commit
9d873d8e7a
@ -916,8 +916,8 @@ static SLONG safe_interpret(char* const s, const size_t bufsize,
|
|||||||
sprintf(s, "unknown dos error %ld", code); // TXNN
|
sprintf(s, "unknown dos error %ld", code); // TXNN
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef WIN_NT
|
|
||||||
case isc_arg_win32:
|
case isc_arg_win32:
|
||||||
|
#ifdef WIN_NT
|
||||||
if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK,
|
if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK,
|
||||||
NULL,
|
NULL,
|
||||||
code,
|
code,
|
||||||
@ -932,11 +932,11 @@ static SLONG safe_interpret(char* const s, const size_t bufsize,
|
|||||||
s,
|
s,
|
||||||
bufsize,
|
bufsize,
|
||||||
NULL))
|
NULL))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
sprintf(s, "unknown Win32 error %ld", code); // TXNN
|
sprintf(s, "unknown Win32 error %ld", code); // TXNN
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (temp)
|
if (temp)
|
||||||
|
Loading…
Reference in New Issue
Block a user