Module: wine Branch: master Commit: cb2f3f76eeb372bf5e3ed853445e6725339c6f23 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cb2f3f76eeb372bf5e3ed8534...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Apr 25 17:40:34 2022 +0200
windows.gaming.input: Set get_AreEffectsPaused value to FALSE when dinput fails.
Signed-off-by: Rémi Bernon rbernon@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/windows.gaming.input/force_feedback.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/windows.gaming.input/force_feedback.c b/dlls/windows.gaming.input/force_feedback.c index a9a875c48e3..24810d1d787 100644 --- a/dlls/windows.gaming.input/force_feedback.c +++ b/dlls/windows.gaming.input/force_feedback.c @@ -111,11 +111,10 @@ static HRESULT WINAPI motor_get_AreEffectsPaused( IForceFeedbackMotor *iface, BO
TRACE( "iface %p, value %p.\n", iface, value );
- if (FAILED(hr = IDirectInputDevice8_GetForceFeedbackState( impl->device, &state ))) - return hr; + if (FAILED(hr = IDirectInputDevice8_GetForceFeedbackState( impl->device, &state ))) *value = FALSE; + else *value = (state & DIGFFS_PAUSED);
- *value = (state & DIGFFS_PAUSED); - return S_OK; + return hr; }
static HRESULT WINAPI motor_get_MasterGain( IForceFeedbackMotor *iface, double *value )