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>
This commit is contained in:
Rémi Bernon 2022-04-25 17:40:34 +02:00 committed by Alexandre Julliard
parent 1132f5f74b
commit cb2f3f76ee
1 changed files with 3 additions and 4 deletions

View File

@ -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 )