From f397a4943c4a1be67e13e22e26c6c7344f351db1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 23 Sep 2016 08:14:40 +0200 Subject: [PATCH] - added OutputDebugString calls to I_Error functions in Win32, so that these messages can be seen in the debug output. --- src/win32/i_system.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32/i_system.cpp b/src/win32/i_system.cpp index 5ada51b69..2075bd276 100644 --- a/src/win32/i_system.cpp +++ b/src/win32/i_system.cpp @@ -797,6 +797,7 @@ void I_FatalError(const char *error, ...) va_start(argptr, error); myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr); va_end(argptr); + OutputDebugString(errortext); // Record error to log (if logging) if (Logfile) @@ -832,6 +833,7 @@ void I_Error(const char *error, ...) va_start(argptr, error); myvsnprintf(errortext, MAX_ERRORTEXT, error, argptr); va_end(argptr); + OutputDebugString(errortext); throw CRecoverableError(errortext); }