mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
[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:
parent
c1e3e32d6d
commit
5d59eafa57
|
@ -145,11 +145,21 @@ GUIDisplayStatusMessage(
|
||||||
&ThreadId);
|
&ThreadId);
|
||||||
if (Thread)
|
if (Thread)
|
||||||
{
|
{
|
||||||
|
/* 'msg' will be freed by 'StartupWindowThread' */
|
||||||
|
|
||||||
CloseHandle(Thread);
|
CloseHandle(Thread);
|
||||||
WaitForSingleObject(msg->StartupEvent, INFINITE);
|
WaitForSingleObject(msg->StartupEvent, INFINITE);
|
||||||
CloseHandle(msg->StartupEvent);
|
CloseHandle(msg->StartupEvent);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* The 'StartupWindowThread' thread couldn't be created,
|
||||||
|
* so we need to free the allocated 'msg'.
|
||||||
|
*/
|
||||||
|
HeapFree(GetProcessHeap(), 0, msg);
|
||||||
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue