Index: subsystems/win32/win32k/ntuser/hook.c =================================================================== --- subsystems/win32/win32k/ntuser/hook.c (revision 49114) +++ subsystems/win32/win32k/ntuser/hook.c (working copy) @@ -254,7 +254,6 @@ } /* release a hook chain, removing deleted hooks if the use count drops to 0 */ -static VOID FASTCALL IntReleaseHookChain(PHOOKTABLE Table, int HookId, PWINSTATION_OBJECT WinStaObj) @@ -327,8 +326,6 @@ PCLIENTINFO ClientInfo; PHOOKTABLE Table; LRESULT Result; - PWINSTATION_OBJECT WinStaObj; - NTSTATUS Status; ASSERT(WH_MINHOOK <= HookId && HookId <= WH_MAXHOOK); @@ -385,22 +382,6 @@ ClientInfo->phkCurrent = SaveHook; - Status = IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation, - KernelMode, - 0, - &WinStaObj); - - if (!NT_SUCCESS(Status)) - { - DPRINT1("Invalid window station????\n"); - } - else - { - IntReleaseHookChain(MsqGetHooks(pti->MessageQueue), HookId, WinStaObj); - IntReleaseHookChain(GlobalHooks, HookId, WinStaObj); - ObDereferenceObject(WinStaObj); - } - return Result; }