Module: wine Branch: master Commit: dbb735efd150f2e7834c07e7d65dbf697cbf9d42 URL: https://source.winehq.org/git/wine.git/?a=commit;h=dbb735efd150f2e7834c07e7d... Author: Ivo Ivanov <logos128(a)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(a)gmail.com> Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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 );