mirror of
https://github.com/reactos/reactos.git
synced 2024-10-23 14:36:11 +00:00
- 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:
parent
e8644f681b
commit
c709aacf75
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue