Rawtherapee hanging on Windows if verbose = true, fixes #3768
This commit is contained in:
@@ -204,8 +204,7 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Console) {
|
if(Console && AllocConsole()) {
|
||||||
AllocConsole();
|
|
||||||
AttachConsole( GetCurrentProcessId() ) ;
|
AttachConsole( GetCurrentProcessId() ) ;
|
||||||
// Don't allow CTRL-C in console to terminate RT
|
// Don't allow CTRL-C in console to terminate RT
|
||||||
SetConsoleCtrlHandler( NULL, true );
|
SetConsoleCtrlHandler( NULL, true );
|
||||||
@@ -243,6 +242,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(argc > 1) {
|
||||||
int ret = processLineParams( argc, argv);
|
int ret = processLineParams( argc, argv);
|
||||||
|
|
||||||
if( ret <= 0 ) {
|
if( ret <= 0 ) {
|
||||||
@@ -255,6 +255,7 @@ int main(int argc, char **argv)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user