A bugfix that wasn't pushed to main-cli.cc (#3691 #3768)

This commit is contained in:
Hombre 2017-04-28 02:17:13 +02:00
parent d3ab104818
commit cf47cdee2d

View File

@ -198,8 +198,7 @@ int main(int argc, char **argv)
break;
}
if(Console) {
AllocConsole();
if(Console && AllocConsole()) {
AttachConsole( GetCurrentProcessId() ) ;
// Don't allow CTRL-C in console to terminate RT
SetConsoleCtrlHandler( NULL, true );