projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added closing of process handle at exit.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
process
/
_cwait.c
diff --git
a/reactos/lib/msvcrt/process/_cwait.c
b/reactos/lib/msvcrt/process/_cwait.c
index
d1a71ce
..
d4df111
100644
(file)
--- a/
reactos/lib/msvcrt/process/_cwait.c
+++ b/
reactos/lib/msvcrt/process/_cwait.c
@@
-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;
}