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
54eebfe5
Commit
54eebfe5
authored
Dec 08, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Check input to GetAsyncKeyState().
parent
c3cdc671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
input.c
dlls/user32/input.c
+2
-0
input.c
dlls/user32/tests/input.c
+8
-0
No files found.
dlls/user32/input.c
View file @
54eebfe5
...
...
@@ -272,6 +272,8 @@ HWND WINAPI GetCapture(void)
*/
SHORT
WINAPI
GetAsyncKeyState
(
INT
nKey
)
{
if
(
nKey
<
0
||
nKey
>
256
)
return
0
;
return
USER_Driver
->
pGetAsyncKeyState
(
nKey
);
}
...
...
dlls/user32/tests/input.c
View file @
54eebfe5
...
...
@@ -1240,6 +1240,13 @@ static void test_ToUnicode(void)
todo_wine
ok
(
ret
==
0
,
"ToUnicode for CTRL + SHIFT + Return didn't return 0 (was %i)
\n
"
,
ret
);
}
static
void
test_get_async_key_state
(
void
)
{
/* input value sanity checks */
ok
(
0
==
GetAsyncKeyState
(
1000000
),
"GetAsyncKeyState did not return 0
\n
"
);
ok
(
0
==
GetAsyncKeyState
(
-
1000000
),
"GetAsyncKeyState did not return 0
\n
"
);
}
START_TEST
(
input
)
{
init_function_pointers
();
...
...
@@ -1254,6 +1261,7 @@ START_TEST(input)
test_mouse_ll_hook
();
test_key_map
();
test_ToUnicode
();
test_get_async_key_state
();
if
(
pGetMouseMovePointsEx
)
test_GetMouseMovePointsEx
();
...
...
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