- Close always the thread and process handle, even if cmd does not wait for termination of the process.

svn path=/trunk/; revision=5316
This commit is contained in:
Hartmut Birr 2003-07-29 18:27:10 +00:00
parent e8644f681b
commit c709aacf75

View file

@ -110,9 +110,9 @@ INT cmd_start (LPTSTR first, LPTSTR rest)
WaitForSingleObject (prci.hProcess, INFINITE);
GetExitCodeProcess (prci.hProcess, &dwExitCode);
nErrorLevel = (INT)dwExitCode;
CloseHandle (prci.hThread);
CloseHandle (prci.hProcess);
}
CloseHandle (prci.hThread);
CloseHandle (prci.hProcess);
}
else
{