Author: jimtabor
Date: Mon Nov 30 21:13:05 2009
New Revision: 44334
URL:
http://svn.reactos.org/svn/reactos?rev=44334&view=rev
Log:
- [Win32k] Test thread death before posting to queue.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/message.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Mon Nov 30
21:13:05 2009
@@ -1324,7 +1324,7 @@
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;