windows.gaming.input: Ignore IDirectInputDevice8_GetDeviceState failures.

We will get hotplug notifications asynchronously, and returning an error
here can cause uncaught C++ exceptions in games.

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-05-06 10:50:13 +02:00 committed by Alexandre Julliard
parent b7f51783bb
commit 3c304287e7
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ static HRESULT WINAPI wine_provider_get_State( IWineGameControllerProvider *ifac
if (FAILED(hr = IDirectInputDevice8_GetDeviceState( impl->dinput_device, sizeof(state), &state )))
{
WARN( "Failed to read device state, hr %#lx\n", hr );
return hr;
return S_OK;
}
i = ARRAY_SIZE(state.rgbButtons);