kernel32: Fix handle leak in start_console_renderer_helper.

This commit is contained in:
Rob Shearman 2008-02-16 15:35:48 +00:00 committed by Alexandre Julliard
parent 903a486dc0
commit 7ed33ae721

View File

@ -1161,6 +1161,9 @@ static BOOL start_console_renderer_helper(const char* appname, STARTUPINFOA*
CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS,
NULL, NULL, si, &pi))
{
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
if (WaitForSingleObject(hEvent, INFINITE) != WAIT_OBJECT_0) return FALSE;
TRACE("Started wineconsole pid=%08x tid=%08x\n",