Commit 37e3e5ec authored by Mark Westcott's avatar Mark Westcott Committed by Alexandre Julliard

DInput keyboard handling checks for incoming X11 events.

parent ef57c4d9
......@@ -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]) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment