Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6dfeab55
Commit
6dfeab55
authored
Oct 25, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Oct 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Return ERROR_GLOBAL_ONLY_HOOK when a thread ID is specified for global hooks.
parent
d2284bb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
msg.c
dlls/user32/tests/msg.c
+0
-1
hook.c
dlls/win32u/hook.c
+1
-1
No files found.
dlls/user32/tests/msg.c
View file @
6dfeab55
...
...
@@ -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
...
...
dlls/win32u/hook.c
View file @
6dfeab55
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment