Commit 38d6f143 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Fixes a mouse regression due to structure size change.

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