8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Do not skip win32 errors on non-win32 systems - print as "unknown Win32"

This commit is contained in:
alexpeshkoff 2008-07-07 12:45:41 +00:00
parent 6f0e5e11ed
commit 9d873d8e7a

View File

@ -916,8 +916,8 @@ static SLONG safe_interpret(char* const s, const size_t bufsize,
sprintf(s, "unknown dos error %ld", code); // TXNN
break;
#ifdef WIN_NT
case isc_arg_win32:
#ifdef WIN_NT
if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK,
NULL,
code,
@ -932,11 +932,11 @@ static SLONG safe_interpret(char* const s, const size_t bufsize,
s,
bufsize,
NULL))
#endif
{
sprintf(s, "unknown Win32 error %ld", code); // TXNN
}
break;
#endif
default:
if (temp)