Hide the console window before freeing so if the console is attachted to another process (currently occuring under Win10) it is at least hidden.
This commit is contained in:
parent
c3614a7e95
commit
157717a61f
|
@ -208,6 +208,7 @@ void CloseConsole()
|
|||
WritePrivateProfileInt("Console", "PosY", pos.top, IniName);
|
||||
WritePrivateProfileInt("Console", "Width", width, IniName);
|
||||
WritePrivateProfileInt("Console", "Height", height, IniName);
|
||||
ShowWindow(gConsoleWnd, SW_HIDE); // FreeConsole isn't killing the console process in Windows 10 so just hide the window for now.
|
||||
}
|
||||
|
||||
FreeConsole();
|
||||
|
|
Loading…
Reference in New Issue