- fix logic, global mouse and keyboard hooks are supported, dinput now works again
authorKamil Hornicek <kamil.hornicek@reactos.org>
Mon, 9 Mar 2009 19:01:11 +0000 (19:01 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Mon, 9 Mar 2009 19:01:11 +0000 (19:01 +0000)
svn path=/trunk/; revision=39919

reactos/subsystems/win32/win32k/ntuser/hook.c

index 2308757..c4b0f86 100644 (file)
@@ -1051,7 +1051,7 @@ NtUserSetWindowsHookEx(
       Global = TRUE;
    }
 
-   if ( ( Global && (HookId != WH_KEYBOARD_LL || HookId != WH_MOUSE_LL) ) ||
+   if ( ( Global && (HookId != WH_KEYBOARD_LL && HookId != WH_MOUSE_LL) ) ||
         WH_DEBUG == HookId ||
         WH_JOURNALPLAYBACK == HookId ||
         WH_JOURNALRECORD == HookId)