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
ace37a68
Commit
ace37a68
authored
May 18, 2020
by
Markus Engel
Committed by
Alexandre Julliard
May 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add more tests for GetKeyState().
Signed-off-by:
Markus Engel
<
markus_wine@familie-engel.online
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d9855df1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
input.c
dlls/user32/tests/input.c
+6
-0
No files found.
dlls/user32/tests/input.c
View file @
ace37a68
...
...
@@ -2759,6 +2759,9 @@ static DWORD WINAPI get_key_state_thread(void *arg)
ok
((
result
&
0x8000
)
||
broken
(
!
(
result
&
0x8000
)),
/* > Win 2003 */
"expected that highest bit is set, got %x
\n
"
,
result
);
ok
((
SHORT
)(
result
&
0x007e
)
==
0
,
"expected that undefined bits are unset, got %x
\n
"
,
result
);
ReleaseSemaphore
(
semaphores
[
0
],
1
,
NULL
);
result
=
WaitForSingleObject
(
semaphores
[
1
],
1000
);
ok
(
result
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %u
\n
"
,
result
);
...
...
@@ -2766,6 +2769,9 @@ static DWORD WINAPI get_key_state_thread(void *arg)
result
=
GetKeyState
(
'X'
);
ok
(
!
(
result
&
0x8000
),
"expected that highest bit is unset, got %x
\n
"
,
result
);
ok
((
SHORT
)(
result
&
0x007e
)
==
0
,
"expected that undefined bits are unset, got %x
\n
"
,
result
);
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