mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 01:16:51 +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…
Add table
Add a link
Reference in a new issue