Commit 45322bb4 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

explorer: Clean up after CreateProcess in WinMain.

parent c2838c95
...@@ -196,6 +196,8 @@ int WINAPI WinMain(HINSTANCE hinstance, ...@@ -196,6 +196,8 @@ int WINAPI WinMain(HINSTANCE hinstance,
if (!rc) if (!rc)
return 0; return 0;
CloseHandle(info.hThread);
WaitForSingleObject(info.hProcess,INFINITE); WaitForSingleObject(info.hProcess,INFINITE);
CloseHandle(info.hProcess);
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment