Fixes a mouse regression due to structure size change.

This commit is contained in:
Robert Reif 2004-09-09 00:25:48 +00:00 committed by Alexandre Julliard
parent 371662faca
commit 38d6f1432f
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
nqtail = This->queue_tail + len;
while (nqtail >= This->queue_len) nqtail -= This->queue_len;
} else {
if (dodsize < sizeof(DIDEVICEOBJECTDATA)) {
if (dodsize < sizeof(DIDEVICEOBJECTDATA_DX3)) {
ERR("Wrong structure size !\n");
LeaveCriticalSection(&(This->crit));
return DIERR_INVALIDPARAM;