From f5258132f4eef483cce5491037d4383f958ce1a2 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 25 Oct 2010 02:51:09 +0000 Subject: [PATCH] [Win32k] - Do not override WH_JOURNALPLAYBACK results if zero. svn path=/trunk/; revision=49270 --- reactos/subsystems/win32/win32k/ntuser/hook.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/hook.c b/reactos/subsystems/win32/win32k/ntuser/hook.c index 9393c4caa7f..baf633883f4 100644 --- a/reactos/subsystems/win32/win32k/ntuser/hook.c +++ b/reactos/subsystems/win32/win32k/ntuser/hook.c @@ -582,7 +582,11 @@ UserCallNextHookEx( PHOOK Hook, break; } break; - +/* + Note WH_JOURNALPLAYBACK, + "To have the system wait before processing the message, the return value + must be the amount of time, in clock ticks, that the system should wait." + */ case WH_JOURNALPLAYBACK: case WH_JOURNALRECORD: { @@ -660,8 +664,6 @@ UserCallNextHookEx( PHOOK Hook, DPRINT1("Unsupported HOOK Id -> %d\n",Hook->HookId); break; } - if (Hook->HookId == WH_JOURNALPLAYBACK && lResult == 0) - lResult = -1; return lResult; } @@ -1005,8 +1007,6 @@ co_HOOK_CallHooks( INT HookId, DPRINT("Ret: Global HookId %d Result 0x%x\n", HookId,Result); } Exit: - if (HookId == WH_JOURNALPLAYBACK && Result == 0) - Result = -1; return Result; }