Clean up C code a bit
parent
23dd744736
commit
096b9fe4b7
|
@ -93,12 +93,12 @@ void open_console(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
// Do this: http://www.cygwin.com/ml/cygwin/2007-11/msg00432.html
|
// Do this: http://www.cygwin.com/ml/cygwin/2007-11/msg00432.html
|
||||||
if(!console_open)
|
if(console_open)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(AttachConsole(ATTACH_PARENT_PROCESS) || AllocConsole())
|
||||||
{
|
{
|
||||||
if(AttachConsole(ATTACH_PARENT_PROCESS) || AllocConsole())
|
console_open = true;
|
||||||
{
|
|
||||||
console_open = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue