Commit 6dfeab55 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

win32u: Return ERROR_GLOBAL_ONLY_HOOK when a thread ID is specified for global hooks.

parent d2284bb6
......@@ -12318,7 +12318,6 @@ static void test_set_hook(void)
|| i == WH_KEYBOARD_LL || i == WH_MOUSE_LL)
{
ok(!hhook, "SetWinEventHook succeeded.\n");
todo_wine
ok(error == ERROR_GLOBAL_ONLY_HOOK, "Got unexpected error %ld.\n", GetLastError());
}
else
......
......@@ -91,7 +91,7 @@ HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module, DWO
id == WH_SYSMSGFILTER)
{
/* these can only be global */
RtlSetLastWin32Error( ERROR_INVALID_PARAMETER );
RtlSetLastWin32Error( ERROR_GLOBAL_ONLY_HOOK );
return 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment