Module: wine Branch: master Commit: 45322bb4485664d322c112fc8008043d78ae3727 URL: http://source.winehq.org/git/wine.git/?a=commit;h=45322bb4485664d322c112fc80...
Author: Rob Shearman rob@codeweavers.com Date: Mon Feb 25 09:00:19 2008 +0000
explorer: Clean up after CreateProcess in WinMain.
---
programs/explorer/explorer.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c index 0f7c257..f261e11 100644 --- a/programs/explorer/explorer.c +++ b/programs/explorer/explorer.c @@ -196,6 +196,8 @@ int WINAPI WinMain(HINSTANCE hinstance, if (!rc) return 0;
+ CloseHandle(info.hThread); WaitForSingleObject(info.hProcess,INFINITE); + CloseHandle(info.hProcess); return 0; }