Author: jimtabor
Date: Mon Nov 1 01:56:07 2010
New Revision: 49392
URL:
http://svn.reactos.org/svn/reactos?rev=49392&view=rev
Log:
[Win32k] - Track end of life thread when removing hooks.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/hook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/hook.c [iso-8859-1] Mon Nov 1 01:56:07
2010
@@ -808,7 +808,7 @@
pti = Thread->Tcb.Win32Thread;
pdo = IntGetActiveDesktop();
-
+DPRINT1("DestroyThreadHooks 1\n");
if (!pti || !pdo)
{
DPRINT1("Kill Thread Hooks pti 0x%x pdo 0x%x\n",pti,pdo);
@@ -838,6 +838,7 @@
}
pti->fsHooks = 0;
}
+DPRINT1("DestroyThreadHooks 2\n");
// Global search based on Thread and cleanup.
if (pdo->pDeskInfo->fsHooks)
{
@@ -863,6 +864,7 @@
}
}
ObDereferenceObject(pti->pEThread);
+DPRINT1("DestroyThreadHooks 3\n");
return;
}