Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b0beeaff
Commit
b0beeaff
authored
Jun 07, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Do not check the last error on succeeding hotkey calls.
parent
a5719990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
msg.c
dlls/user32/tests/msg.c
+3
-10
No files found.
dlls/user32/tests/msg.c
View file @
b0beeaff
...
...
@@ -13107,7 +13107,6 @@ static void test_hotkey(void)
if
(
ret
==
TRUE
)
{
ok
(
GetLastError
()
==
0xdeadbeef
,
"unexpected error %d
\n
"
,
GetLastError
());
break
;
}
else
...
...
@@ -13197,10 +13196,8 @@ static void test_hotkey(void)
ok
(
ret
==
TRUE
,
"expected TRUE, got %i, err=%d
\n
"
,
ret
,
GetLastError
());
/* Unregister hotkey properly */
SetLastError
(
0xdeadbeef
);
ret
=
UnregisterHotKey
(
test_window
,
5
);
ok
(
ret
==
TRUE
,
"expected TRUE, got %i
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"unexpected error %d
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
,
"expected TRUE, got %i, err=%d
\n
"
,
ret
,
GetLastError
());
/* Unregister hotkey again */
SetLastError
(
0xdeadbeef
);
...
...
@@ -13209,10 +13206,8 @@ static void test_hotkey(void)
ok
(
GetLastError
()
==
ERROR_HOTKEY_NOT_REGISTERED
,
"unexpected error %d
\n
"
,
GetLastError
());
/* Register thread hotkey */
SetLastError
(
0xdeadbeef
);
ret
=
RegisterHotKey
(
NULL
,
5
,
MOD_WIN
,
hotkey_letter
);
ok
(
ret
==
TRUE
,
"expected TRUE, got %i
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"unexpected error %d
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
,
"expected TRUE, got %i, err=%d
\n
"
,
ret
,
GetLastError
());
/* Inject the appropriate key sequence */
keybd_event
(
VK_LWIN
,
0
,
0
,
0
);
...
...
@@ -13265,10 +13260,8 @@ static void test_hotkey(void)
ok_sequence
(
WmHotkeyReleaseLWIN
,
"thread hotkey release LWIN"
,
FALSE
);
/* Unregister thread hotkey */
SetLastError
(
0xdeadbeef
);
ret
=
UnregisterHotKey
(
NULL
,
5
);
ok
(
ret
==
TRUE
,
"expected TRUE, got %i
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"unexpected error %d
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
,
"expected TRUE, got %i, err=%d
\n
"
,
ret
,
GetLastError
());
UnhookWindowsHookEx
(
hKBD_hook
);
hKBD_hook
=
NULL
;
...
...
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