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
d5ff6917
Commit
d5ff6917
authored
Feb 18, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Remove unnecessary critical section entry.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d7889ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
joystick_hid.c
dlls/dinput/joystick_hid.c
+0
-2
No files found.
dlls/dinput/joystick_hid.c
View file @
d5ff6917
...
...
@@ -1279,7 +1279,6 @@ static HRESULT hid_joystick_read( IDirectInputDevice8W *iface )
&
index
,
impl
->
preparsed
,
report_buf
,
report_len
);
if
(
status
!=
HIDP_STATUS_SUCCESS
)
WARN
(
"HidP_GetUsageValue EFFECT_BLOCK_INDEX returned %#lx
\n
"
,
status
);
EnterCriticalSection
(
&
impl
->
base
.
crit
);
effect_state
=
0
;
device_state
=
impl
->
base
.
force_feedback_state
&
DIGFFS_EMPTY
;
while
(
count
--
)
...
...
@@ -1308,7 +1307,6 @@ static HRESULT hid_joystick_read( IDirectInputDevice8W *iface )
LIST_FOR_EACH_ENTRY
(
effect
,
&
impl
->
effect_list
,
struct
hid_joystick_effect
,
entry
)
if
(
effect
->
index
==
index
)
effect
->
status
=
effect_state
;
impl
->
base
.
force_feedback_state
=
device_state
;
LeaveCriticalSection
(
&
impl
->
base
.
crit
);
}
memset
(
&
impl
->
read_ovl
,
0
,
sizeof
(
impl
->
read_ovl
)
);
...
...
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