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 = { ...@@ -74,7 +74,7 @@ const DIDATAFORMAT c_dfDIJoystick = {
sizeof(DIDATAFORMAT), sizeof(DIDATAFORMAT),
sizeof(DIOBJECTDATAFORMAT), sizeof(DIOBJECTDATAFORMAT),
DIDF_ABSAXIS, DIDF_ABSAXIS,
sizeof(DIJOYSTATE2), sizeof(DIJOYSTATE),
numObjects(dfDIJoystick), numObjects(dfDIJoystick),
(LPDIOBJECTDATAFORMAT)dfDIJoystick (LPDIOBJECTDATAFORMAT)dfDIJoystick
}; };
......
...@@ -899,7 +899,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities( ...@@ -899,7 +899,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities(
return E_POINTER; return E_POINTER;
} }
if (lpDIDevCaps->dwSize < sizeof(DIDEVCAPS)) { if (lpDIDevCaps->dwSize != sizeof(DIDEVCAPS)) {
WARN("invalid argument\n"); WARN("invalid argument\n");
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