mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
DInput keyboard handling checks for incoming X11 events.
This commit is contained in:
parent
ef57c4d905
commit
37e3e5ec97
@ -281,6 +281,8 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceState(
|
||||
if (len != 256)
|
||||
return DIERR_INVALIDPARAM;
|
||||
|
||||
MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
|
||||
|
||||
memcpy(ptr, DInputKeyState, 256);
|
||||
return DI_OK;
|
||||
}
|
||||
@ -305,6 +307,8 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
|
||||
if (dodsize < sizeof(*dod))
|
||||
return DIERR_INVALIDPARAM;
|
||||
|
||||
MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
|
||||
|
||||
EnterCriticalSection(&(This->crit));
|
||||
|
||||
/* Copy item at a time for the case dodsize > sizeof(buffer[n]) */
|
||||
|
Loading…
Reference in New Issue
Block a user