Ivo Ivanov : dinput: Stop calling SendForceFeedbackCommand on device destroy.

Alexandre Julliard julliard at winehq.org
Fri Nov 12 16:16:04 CST 2021


Module: wine
Branch: master
Commit: dbb735efd150f2e7834c07e7d65dbf697cbf9d42
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=dbb735efd150f2e7834c07e7d65dbf697cbf9d42

Author: Ivo Ivanov <logos128 at gmail.com>
Date:   Fri Nov 12 09:49:37 2021 +0100

dinput: Stop calling SendForceFeedbackCommand on device destroy.

It is only relevant for FFB devices, and is already being called by
hid_joystick_unacquire().

Signed-off-by: Ivo Ivanov <logos128 at gmail.com>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dinput/device.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index a0fc47ec05b..12670a46564 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -741,8 +741,6 @@ void dinput_device_destroy( IDirectInputDevice8W *iface )
     TRACE( "iface %p.\n", iface );
 
     IDirectInputDevice_Unacquire(iface);
-    /* Reset the FF state, free all effects, etc */
-    IDirectInputDevice8_SendForceFeedbackCommand(iface, DISFFC_RESET);
 
     free( This->data_queue );
 




More information about the wine-cvs mailing list