Added closing of process handle at exit.

svn path=/trunk/; revision=2802
This commit is contained in:
Hartmut Birr 2002-04-01 21:56:56 +00:00
parent aaeb01a3e1
commit 4d142d61ac

View file

@ -27,5 +27,6 @@ int _cwait(int* pnStatus, int hProc, int nAction)
return -1;
if (pnStatus != NULL)
*pnStatus = (int)ExitCode;
CloseHandle((HANDLE)hProc);
return hProc;
}