write: Close the thread and process handles returned by CreateProcessW.

This commit is contained in:
Rob Shearman 2008-10-13 23:37:04 +01:00 committed by Alexandre Julliard
parent 4ff3d9954e
commit b7cfa58996
1 changed files with 2 additions and 0 deletions

View File

@ -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: