mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 10:27:37 +00:00
[DINPUT] Sync with Wine 3.0. CORE-14225
This commit is contained in:
parent
56fc552f24
commit
0b35adc274
5 changed files with 28 additions and 27 deletions
|
@ -976,9 +976,9 @@ HRESULT WINAPI IDirectInputDevice2WImpl_Acquire(LPDIRECTINPUTDEVICE8W iface)
|
|||
EnterCriticalSection(&This->crit);
|
||||
res = This->acquired ? S_FALSE : DI_OK;
|
||||
This->acquired = 1;
|
||||
LeaveCriticalSection(&This->crit);
|
||||
if (res == DI_OK)
|
||||
check_dinput_hooks(iface, TRUE);
|
||||
check_dinput_hooks(iface);
|
||||
LeaveCriticalSection(&This->crit);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -1004,9 +1004,9 @@ HRESULT WINAPI IDirectInputDevice2WImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface)
|
|||
EnterCriticalSection(&This->crit);
|
||||
res = !This->acquired ? DI_NOEFFECT : DI_OK;
|
||||
This->acquired = 0;
|
||||
LeaveCriticalSection(&This->crit);
|
||||
if (res == DI_OK)
|
||||
check_dinput_hooks(iface, FALSE);
|
||||
check_dinput_hooks(iface);
|
||||
LeaveCriticalSection(&This->crit);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue