From c3dc1252560c992d931e3fd547201cc56cc492aa Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Tue, 22 Nov 2011 15:07:27 +0000 Subject: [PATCH] [EXPLORER] - Close thread handle for startup processes in Run and RunOnce keys. Fixes cmd.exe ghost on first bootcd explorer startup. svn path=/trunk/; revision=54474 --- reactos/base/shell/explorer/services/startup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/base/shell/explorer/services/startup.c b/reactos/base/shell/explorer/services/startup.c index ba435632fd9..cf8c9699bc0 100644 --- a/reactos/base/shell/explorer/services/startup.c +++ b/reactos/base/shell/explorer/services/startup.c @@ -267,6 +267,7 @@ static int runCmd(LPWSTR cmdline, LPCWSTR dir, BOOL wait, BOOL minimized) GetExitCodeProcess(info.hProcess, &exit_code); } + CloseHandle(info.hThread); CloseHandle(info.hProcess); return exit_code;