[MSGINA]: Addendum for r62065 . I don't like freeing this 'msg' object in many places (in the caller and in the thread).

svn path=/trunk/; revision=62299
This commit is contained in:
Hermès Bélusca-Maïto 2014-02-23 11:41:56 +00:00
parent c1e3e32d6d
commit 5d59eafa57

View file

@ -145,11 +145,21 @@ GUIDisplayStatusMessage(
&ThreadId);
if (Thread)
{
/* 'msg' will be freed by 'StartupWindowThread' */
CloseHandle(Thread);
WaitForSingleObject(msg->StartupEvent, INFINITE);
CloseHandle(msg->StartupEvent);
return TRUE;
}
else
{
/*
* The 'StartupWindowThread' thread couldn't be created,
* so we need to free the allocated 'msg'.
*/
HeapFree(GetProcessHeap(), 0, msg);
}
return FALSE;
}