From 36b035181402140212e67c56a045f78f44d22f27 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 14 Oct 2010 18:36:33 +0000 Subject: [PATCH] [win32k] - Disable checking if a hook is active. It is safe to disable it for now because it is just an optimization. If we try to call a hook when it is not active, it will fail anyway when it tries to find the hook. Fixes calling low level hooks svn path=/trunk/; revision=49144 --- reactos/subsystems/win32/win32k/ntuser/hook.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/hook.c b/reactos/subsystems/win32/win32k/ntuser/hook.c index 625bd3abbcb..6b6df548973 100644 --- a/reactos/subsystems/win32/win32k/ntuser/hook.c +++ b/reactos/subsystems/win32/win32k/ntuser/hook.c @@ -332,11 +332,13 @@ co_HOOK_CallHooks(INT HookId, INT Code, WPARAM wParam, LPARAM lParam) ASSERT(WH_MINHOOK <= HookId && HookId <= WH_MAXHOOK); +#if 0 /* FIXME! Check pDeskInfo->fsHooks for global hooks! */ if (!ISITHOOKED(HookId)) { return 0; } +#endif pti = PsGetCurrentThreadWin32Thread(); if (!pti)