From 45322bb4485664d322c112fc8008043d78ae3727 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 25 Feb 2008 09:00:19 +0000 Subject: [PATCH] explorer: Clean up after CreateProcess in WinMain. --- programs/explorer/explorer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c index 0f7c2571f60..f261e117e73 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; }