Fixed size check in GetDeviceData.
This commit is contained in:
parent
2d54019bbd
commit
09a2eab38d
|
@ -399,7 +399,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
|
||||||
if (This->buffer == NULL)
|
if (This->buffer == NULL)
|
||||||
return DIERR_NOTBUFFERED;
|
return DIERR_NOTBUFFERED;
|
||||||
|
|
||||||
if (dodsize < sizeof(*dod))
|
if (dodsize < sizeof(DIDEVICEOBJECTDATA_DX3))
|
||||||
return DIERR_INVALIDPARAM;
|
return DIERR_INVALIDPARAM;
|
||||||
|
|
||||||
MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
|
MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue