[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 14 Oct 2010 18:36:33 +0000 (18:36 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 14 Oct 2010 18:36:33 +0000 (18:36 +0000)
- 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

index 625bd3a..6b6df54 100644 (file)
@@ -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)