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
adad80f4
Commit
adad80f4
authored
Jan 17, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Always query actual key state from the server for pressed keys.
parent
03820a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
input.c
dlls/user32/input.c
+6
-6
No files found.
dlls/user32/input.c
View file @
adad80f4
...
...
@@ -369,12 +369,12 @@ SHORT WINAPI DECLSPEC_HOTPATCH GetAsyncKeyState( INT key )
if
((
ret
=
USER_Driver
->
pGetAsyncKeyState
(
key
))
==
-
1
)
{
if
(
thread_info
->
key_state
)
{
if
(
GetTickCount
()
-
thread_info
->
key_state_time
<
50
)
return
(
thread_info
->
key_state
[
key
]
&
0x80
)
?
0x8000
:
0
;
}
else
thread_info
->
key_state
=
HeapAlloc
(
GetProcessHeap
(),
0
,
256
);
if
(
thread_info
->
key_state
&&
!
(
thread_info
->
key_state
[
key
]
&
0xc0
)
&&
GetTickCount
()
-
thread_info
->
key_state_time
<
50
)
return
0
;
if
(
!
thread_info
->
key_state
)
thread_info
->
key_state
=
HeapAlloc
(
GetProcessHeap
(),
0
,
256
);
ret
=
0
;
SERVER_START_REQ
(
get_key_state
)
...
...
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