mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- [Win32k] Test thread death before posting to queue.
svn path=/trunk/; revision=44334
This commit is contained in:
parent
c4e84dd682
commit
4b9396cef9
1 changed files with 1 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ UserPostThreadMessage( DWORD idThread,
|
|||
if( Status == STATUS_SUCCESS )
|
||||
{
|
||||
pThread = (PTHREADINFO)peThread->Tcb.Win32Thread;
|
||||
if( !pThread || !pThread->MessageQueue )
|
||||
if( !pThread || !pThread->MessageQueue || (pThread->TIF_flags & TIF_INCLEANUP))
|
||||
{
|
||||
ObDereferenceObject( peThread );
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue