mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Added closing of process handle at exit.
svn path=/trunk/; revision=2802
This commit is contained in:
parent
aaeb01a3e1
commit
4d142d61ac
1 changed files with 1 additions and 0 deletions
|
@ -27,5 +27,6 @@ int _cwait(int* pnStatus, int hProc, int nAction)
|
||||||
return -1;
|
return -1;
|
||||||
if (pnStatus != NULL)
|
if (pnStatus != NULL)
|
||||||
*pnStatus = (int)ExitCode;
|
*pnStatus = (int)ExitCode;
|
||||||
|
CloseHandle((HANDLE)hProc);
|
||||||
return hProc;
|
return hProc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue