diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp index 31db3c2ee10..14b97d80506 100644 --- a/backends/platform/sdl/win32/win32.cpp +++ b/backends/platform/sdl/win32/win32.cpp @@ -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 }