diff options
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/windows/win32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp index d2540ac34..bb1a0a420 100644 --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -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); |