- added OutputDebugString calls to I_Error functions in Win32, so that these messages can be seen in the debug output.

This commit is contained in:
Christoph Oelckers 2016-09-23 08:14:40 +02:00
parent c17da32dbd
commit f397a4943c

View file

@ -797,6 +797,7 @@ void I_FatalError(const char *error, ...)
va_start(argptr, error); va_start(argptr, error);
myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr); myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr);
va_end(argptr); va_end(argptr);
OutputDebugString(errortext);
// Record error to log (if logging) // Record error to log (if logging)
if (Logfile) if (Logfile)
@ -832,6 +833,7 @@ void I_Error(const char *error, ...)
va_start(argptr, error); va_start(argptr, error);
myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr); myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr);
va_end(argptr); va_end(argptr);
OutputDebugString(errortext);
throw CRecoverableError(errortext); throw CRecoverableError(errortext);
} }