Fix: [Win32] don't mess with std[out|err|in] if we can't allocate a console

This commit is contained in:
glx 2018-12-31 00:00:29 +01:00 committed by glx22
parent 4fbfe34e36
commit 92d3358db5
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ void CreateConsole()
if (_has_console) return;
_has_console = true;
AllocConsole();
if (!AllocConsole()) return;
hand = GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo(hand, &coninfo);