mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[USER32_APITEST]
- Fail if we get too many WM_HOTKEY messages CORE-9728 svn path=/trunk/; revision=68188
This commit is contained in:
parent
b86dbc4c76
commit
484a5f8751
1 changed files with 3 additions and 3 deletions
|
@ -23,14 +23,14 @@
|
|||
#define expect_hotkey(id, mod, vk) do \
|
||||
{ \
|
||||
MSG msg; \
|
||||
BOOL got_hotkey = FALSE; \
|
||||
int hotkey_count = 0; \
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) \
|
||||
{ \
|
||||
msg_hotkey(&msg, id, mod, vk); \
|
||||
if (msg.message == WM_HOTKEY) got_hotkey = TRUE; \
|
||||
if (msg.message == WM_HOTKEY) hotkey_count++; \
|
||||
DispatchMessageW(&msg); \
|
||||
} \
|
||||
ok(got_hotkey, "Did not receive expected WM_HOTKEY message\n"); \
|
||||
ok(hotkey_count == 1, "Received %d WM_HOTKEY messages, expected 1\n"); \
|
||||
} while (0)
|
||||
#define msg_no_hotkey(msg) do \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue