# HG changeset patch # User lbajardsilogic # Date 1179219097 0 # Node ID 67b1b8cec8c031524b91d675b199ae8bcf15c54c # Parent 9b552cc5e0d82ea91b225d85f68d88192e5997fa Fix a problem on Win32 with outout redirected to console diff -r 9b552cc5e0d8 -r 67b1b8cec8c0 system/Init.cpp --- a/system/Init.cpp Tue May 15 08:03:48 2007 +0000 +++ b/system/Init.cpp Tue May 15 08:51:37 2007 +0000 @@ -51,11 +51,11 @@ void redirectStderr() { - HANDLE stderrHandle = GetStdHandle(STD_ERROR_HANDLE); + AllocConsole(); + + HANDLE stderrHandle = GetStdHandle(STD_ERROR_HANDLE); if (!stderrHandle) return; - AllocConsole(); - CONSOLE_SCREEN_BUFFER_INFO info; GetConsoleScreenBufferInfo(stderrHandle, &info); info.dwSize.Y = 1000;