Rémi Bernon : dinput: Remove unnecessary critical section entry.
Alexandre Julliard
julliard at winehq.org
Fri Feb 18 15:15:00 CST 2022
Module: wine
Branch: master
Commit: d5ff6917b76e1584d3a317c6a38687e99340dc35
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d5ff6917b76e1584d3a317c6a38687e99340dc35
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri Feb 18 10:31:15 2022 +0100
dinput: Remove unnecessary critical section entry.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dinput/joystick_hid.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/dinput/joystick_hid.c b/dlls/dinput/joystick_hid.c
index 13c168bca89..ee67c904fa5 100644
--- a/dlls/dinput/joystick_hid.c
+++ b/dlls/dinput/joystick_hid.c
@@ -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) );
More information about the wine-cvs
mailing list