Author: jimtabor
Date: Sun Oct 4 01:39:30 2009
New Revision: 43276
URL:
http://svn.reactos.org/svn/reactos?rev=43276&view=rev
Log:
- Use TIF in cleanup flag.
Modified:
trunk/reactos/subsystems/win32/win32k/main/dllmain.c
trunk/reactos/subsystems/win32/win32k/ntuser/input.c
trunk/reactos/subsystems/win32/win32k/ntuser/message.c
Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ma…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Sun Oct 4 01:39:30
2009
@@ -264,7 +264,7 @@
}
}
}
- Win32Thread->IsExiting = FALSE;
+ Win32Thread->TIF_flags &= ~TIF_INCLEANUP;
co_IntDestroyCaret(Win32Thread);
Win32Thread->ppi = PsGetCurrentProcessWin32Process();
pTeb = NtCurrentTeb();
@@ -283,7 +283,6 @@
DPRINT("Destroying W32 thread TID:%d at IRQ level: %lu\n",
Thread->Cid.UniqueThread, KeGetCurrentIrql());
- Win32Thread->IsExiting = TRUE;
Win32Thread->TIF_flags |= TIF_INCLEANUP;
HOOK_DestroyThreadHooks(Thread);
UnregisterThreadHotKeys(Thread);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Sun Oct 4 01:39:30
2009
@@ -1008,7 +1008,7 @@
PTHREADINFO OldBlock;
ASSERT(W32Thread);
- if(!W32Thread->Desktop || (W32Thread->IsExiting && BlockIt))
+ if(!W32Thread->Desktop || ((W32Thread->TIF_flags & TIF_INCLEANUP) &&
BlockIt))
{
/*
* fail blocking if exiting the thread
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] Sun Oct 4
01:39:30 2009
@@ -1513,7 +1513,7 @@
if (NULL != Win32Thread &&
Window->MessageQueue == Win32Thread->MessageQueue)
{
- if (Win32Thread->IsExiting)
+ if (Win32Thread->TIF_flags & TIF_INCLEANUP)
{
/* Never send messages to exiting threads */
RETURN( FALSE);