Module: wine Branch: master Commit: b7cfa5899684b940a7be1f499e656c7dea2a78fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7cfa5899684b940a7be1f499e...
Author: Rob Shearman robertshearman@gmail.com Date: Mon Oct 13 23:37:04 2008 +0100
write: Close the thread and process handles returned by CreateProcessW.
---
programs/write/write.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/write/write.c b/programs/write/write.c index f60d40c..8012355 100644 --- a/programs/write/write.c +++ b/programs/write/write.c @@ -45,6 +45,8 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
if (!CreateProcessW(path, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &stinf, &info)) goto failed; + CloseHandle(info.hProcess); + CloseHandle(info.hThread); return 0;
failed: