Don't kill windows console on abort

This commit is contained in:
Jack Andersen 2019-05-09 18:06:21 -10:00
parent 3da29add5f
commit a2ffe70b4e
1 changed files with 2 additions and 2 deletions

View File

@ -99,8 +99,8 @@ void KillProcessTree() {
// kill child processes
while (bContinue) {
// only kill child processes
if (pe.th32ParentProcessID == myprocID) {
// only kill child processes and let console window remain
if (pe.th32ParentProcessID == myprocID && wcscmp(pe.szExeFile, L"conhost.exe")) {
HANDLE hChildProc = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe.th32ProcessID);
if (hChildProc) {