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
fb2df675
Commit
fb2df675
authored
Jul 22, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix test failures when the low-level hook cannot be set.
parent
a900fe7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
msg.c
dlls/user32/tests/msg.c
+6
-4
No files found.
dlls/user32/tests/msg.c
View file @
fb2df675
...
...
@@ -2025,7 +2025,8 @@ static void ok_sequence_(const struct message *expected_list, const char *contex
while
(
expected
->
message
&&
actual
->
message
)
{
if
(
expected
->
message
==
actual
->
message
)
if
(
expected
->
message
==
actual
->
message
&&
!
((
expected
->
flags
^
actual
->
flags
)
&
(
hook
|
winevent_hook
|
kbd_hook
)))
{
if
(
expected
->
flags
&
wparam
)
{
...
...
@@ -2130,7 +2131,8 @@ static void ok_sequence_(const struct message *expected_list, const char *contex
/* silently drop hook messages if there is no support for them */
else
if
((
expected
->
flags
&
optional
)
||
((
expected
->
flags
&
hook
)
&&
!
hCBT_hook
)
||
((
expected
->
flags
&
winevent_hook
)
&&
!
hEvent_hook
))
((
expected
->
flags
&
winevent_hook
)
&&
!
hEvent_hook
)
||
((
expected
->
flags
&
kbd_hook
)
&&
!
hKBD_hook
))
expected
++
;
else
if
(
todo
)
{
...
...
@@ -13213,7 +13215,7 @@ static void test_hotkey(void)
}
hKBD_hook
=
SetWindowsHookEx
(
WH_KEYBOARD_LL
,
KeyboardHookProc
,
GetModuleHandle
(
NULL
),
0
);
ok
(
hKBD_hook
!=
NULL
,
"failed to install hook, err %i
\n
"
,
GetLastError
()
);
if
(
!
hKBD_hook
)
win_skip
(
"WH_KEYBOARD_LL is not supported
\n
"
);
/* Same key combination, different id */
SetLastError
(
0xdeadbeef
);
...
...
@@ -13409,7 +13411,7 @@ static void test_hotkey(void)
ret
=
UnregisterHotKey
(
NULL
,
5
);
ok
(
ret
==
TRUE
,
"expected TRUE, got %i, err=%d
\n
"
,
ret
,
GetLastError
());
UnhookWindowsHookEx
(
hKBD_hook
);
if
(
hKBD_hook
)
UnhookWindowsHookEx
(
hKBD_hook
);
hKBD_hook
=
NULL
;
end:
...
...
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