From cf47cdee2dc702a757a3c40d96f63a5a284b0a9b Mon Sep 17 00:00:00 2001 From: Hombre Date: Fri, 28 Apr 2017 02:17:13 +0200 Subject: [PATCH] A bugfix that wasn't pushed to main-cli.cc (#3691 #3768) --- rtgui/main-cli.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtgui/main-cli.cc b/rtgui/main-cli.cc index e59ebaf09..18734e0da 100644 --- a/rtgui/main-cli.cc +++ b/rtgui/main-cli.cc @@ -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 );