Commit 09a2eab3 authored by Torbjörn Andersson's avatar Torbjörn Andersson Committed by Alexandre Julliard

Fixed size check in GetDeviceData.

parent 2d54019b
......@@ -399,7 +399,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
if (This->buffer == NULL)
return DIERR_NOTBUFFERED;
if (dodsize < sizeof(*dod))
if (dodsize < sizeof(DIDEVICEOBJECTDATA_DX3))
return DIERR_INVALIDPARAM;
MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
......
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