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
5d5b6a1f
Commit
5d5b6a1f
authored
May 02, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use the standard Interlocked* functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
39e4b788
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
hook.c
dlls/user32/hook.c
+1
-1
input.c
dlls/user32/input.c
+1
-1
No files found.
dlls/user32/hook.c
View file @
5d5b6a1f
...
...
@@ -449,7 +449,7 @@ static LRESULT call_hook( struct hook_info *info, INT code, WPARAM wparam, LPARA
}
if
(
info
->
id
==
WH_KEYBOARD_LL
||
info
->
id
==
WH_MOUSE_LL
)
interlocked_xchg_add
(
&
global_key_state_counter
,
1
);
/* force refreshing the key state cache */
InterlockedIncrement
(
&
global_key_state_counter
);
/* force refreshing the key state cache */
return
ret
;
}
...
...
dlls/user32/input.c
View file @
5d5b6a1f
...
...
@@ -433,7 +433,7 @@ SHORT WINAPI DECLSPEC_HOTPATCH GetAsyncKeyState( INT key )
* (like Adobe Photoshop CS5) expect that changes to the async key state
* are also immediately available in other threads. */
if
(
prev_key_state
!=
key_state_info
->
state
[
key
])
counter
=
interlocked_xchg_add
(
&
global_key_state_counter
,
1
)
+
1
;
counter
=
InterlockedIncrement
(
&
global_key_state_counter
)
;
key_state_info
->
time
=
GetTickCount
();
key_state_info
->
counter
=
counter
;
...
...
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