WIN32: Fix build when USE_WINDBG is defined

This commit is contained in:
sluicebox 2021-10-29 12:54:34 -05:00
parent 7210cae3fd
commit 40ed77d3bf

View File

@ -205,7 +205,9 @@ void OSystem_Win32::logMessage(LogMessageType::Type type, const char *message) {
OSystem_SDL::logMessage(type, message);
#if defined( USE_WINDBG )
OutputDebugString(message);
TCHAR *tMessage = Win32::stringToTchar(message);
OutputDebugString(tMessage);
free(tMessage);
#endif
}