mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
[win32k]
- Call UserUnregisterUserApiHook from the process cleanup routine if the process has registered the user api hook svn path=/branches/GSoC_2011/ThemesSupport/; revision=52652
This commit is contained in:
parent
aeebfa7e0e
commit
cf8d09b13c
|
@ -382,6 +382,18 @@ Win32kThreadCallback(struct _ETHREAD *Thread,
|
||||||
}
|
}
|
||||||
while (pti);
|
while (pti);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do now some process cleanup that requires a valid win32 thread */
|
||||||
|
if(Win32Thread->ppi->cThreads == 0)
|
||||||
|
{
|
||||||
|
/* Check if we have registered the user api hook */
|
||||||
|
if(Win32Thread->ppi == ppiUahServer)
|
||||||
|
{
|
||||||
|
/* Unregister the api hook without blocking */
|
||||||
|
UserUnregisterUserApiHook(FALSE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DceFreeThreadDCE(Win32Thread);
|
DceFreeThreadDCE(Win32Thread);
|
||||||
HOOK_DestroyThreadHooks(Thread);
|
HOOK_DestroyThreadHooks(Thread);
|
||||||
EVENT_DestroyThreadEvents(Thread);
|
EVENT_DestroyThreadEvents(Thread);
|
||||||
|
|
Loading…
Reference in a new issue