mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
kernel32: Fix handle leak in start_console_renderer_helper.
This commit is contained in:
parent
903a486dc0
commit
7ed33ae721
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user