mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +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
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue