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
7fb4e2ae
Commit
7fb4e2ae
authored
Mar 04, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a test to make sure that SendInput sets a non-zero event time.
parent
14ec98bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
input.c
dlls/user32/tests/input.c
+13
-0
No files found.
dlls/user32/tests/input.c
View file @
7fb4e2ae
...
...
@@ -369,6 +369,16 @@ static void test_Input_whitebox(void)
DestroyWindow
(
hWndTest
);
}
static
inline
BOOL
is_keyboard_message
(
UINT
message
)
{
return
(
message
>=
WM_KEYFIRST
&&
message
<=
WM_KEYLAST
);
}
static
inline
BOOL
is_mouse_message
(
UINT
message
)
{
return
(
message
>=
WM_MOUSEFIRST
&&
message
<=
WM_MOUSELAST
);
}
/* try to make sure pending X events have been processed before continuing */
static
void
empty_message_queue
(
void
)
{
...
...
@@ -382,6 +392,9 @@ static void empty_message_queue(void)
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
min_timeout
,
QS_ALLINPUT
)
==
WAIT_TIMEOUT
)
break
;
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
{
if
(
is_keyboard_message
(
msg
.
message
)
||
is_mouse_message
(
msg
.
message
))
ok
(
msg
.
time
!=
0
,
"message %#x has time set to 0
\n
"
,
msg
.
message
);
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
...
...
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