Commit 7ed33ae7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

kernel32: Fix handle leak in start_console_renderer_helper.

parent 903a486d
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment