Skip to content
Snippets Groups Projects
Commit 90ebe524 authored by Rémi Bernon's avatar Rémi Bernon :speech_balloon: Committed by Alexandre Julliard
Browse files

dinput: Only call internal poll callback when device is acquired.

parent 2a77543c
Branches
Tags
No related merge requests found
......@@ -1537,6 +1537,7 @@ static HRESULT WINAPI dinput_device_Poll( IDirectInputDevice8W *iface )
EnterCriticalSection( &impl->crit );
if (!impl->acquired) hr = DIERR_NOTACQUIRED;
LeaveCriticalSection( &impl->crit );
if (FAILED(hr)) return hr;
if (impl->vtbl->poll) return impl->vtbl->poll( iface );
return hr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment