Fixed size check in GetDeviceData.

This commit is contained in:
Torbjörn Andersson 2004-10-28 21:01:44 +00:00 committed by Alexandre Julliard
parent 2d54019bbd
commit 09a2eab38d
1 changed files with 1 additions and 1 deletions

View File

@ -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);