mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
Fix: [Win32] don't mess with std[out|err|in] if we can't allocate a console
This commit is contained in:
parent
4fbfe34e36
commit
92d3358db5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user