mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[Win32k] - Track end of life thread when removing hooks.
svn path=/trunk/; revision=49392
This commit is contained in:
parent
326f161b42
commit
4e5c48aaaf
1 changed files with 3 additions and 1 deletions
|
@ -808,7 +808,7 @@ HOOK_DestroyThreadHooks(PETHREAD Thread)
|
|||
|
||||
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 @@ HOOK_DestroyThreadHooks(PETHREAD Thread)
|
|||
}
|
||||
pti->fsHooks = 0;
|
||||
}
|
||||
DPRINT1("DestroyThreadHooks 2\n");
|
||||
// Global search based on Thread and cleanup.
|
||||
if (pdo->pDeskInfo->fsHooks)
|
||||
{
|
||||
|
@ -863,6 +864,7 @@ HOOK_DestroyThreadHooks(PETHREAD Thread)
|
|||
}
|
||||
}
|
||||
ObDereferenceObject(pti->pEThread);
|
||||
DPRINT1("DestroyThreadHooks 3\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue