Commit b0eb9d0b authored by Christoph Frick's avatar Christoph Frick Committed by Alexandre Julliard

dinput: Set the correct size for the old dinput joystick.

This also reverts my previous patch as this is the real cause for the problems with Grand Prix Legends.
parent df97fd3e
......@@ -74,7 +74,7 @@ const DIDATAFORMAT c_dfDIJoystick = {
sizeof(DIDATAFORMAT),
sizeof(DIOBJECTDATAFORMAT),
DIDF_ABSAXIS,
sizeof(DIJOYSTATE2),
sizeof(DIJOYSTATE),
numObjects(dfDIJoystick),
(LPDIOBJECTDATAFORMAT)dfDIJoystick
};
......
......@@ -899,7 +899,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
return E_POINTER;
}
if (lpDIDevCaps->dwSize < sizeof(DIDEVCAPS)) {
if (lpDIDevCaps->dwSize != sizeof(DIDEVCAPS)) {
WARN("invalid argument\n");
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