From c709aacf75563bee3b7511892ac8f9b41e13a352 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 29 Jul 2003 18:27:10 +0000 Subject: [PATCH] - Close always the thread and process handle, even if cmd does not wait for termination of the process. svn path=/trunk/; revision=5316 --- reactos/subsys/system/cmd/start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/cmd/start.c b/reactos/subsys/system/cmd/start.c index 5b465bbb409..8eb05ee5fcf 100644 --- a/reactos/subsys/system/cmd/start.c +++ b/reactos/subsys/system/cmd/start.c @@ -110,9 +110,9 @@ INT cmd_start (LPTSTR first, LPTSTR rest) WaitForSingleObject (prci.hProcess, INFINITE); GetExitCodeProcess (prci.hProcess, &dwExitCode); nErrorLevel = (INT)dwExitCode; - CloseHandle (prci.hThread); - CloseHandle (prci.hProcess); } + CloseHandle (prci.hThread); + CloseHandle (prci.hProcess); } else {