diff --git a/dlls/dinput/data_formats.c b/dlls/dinput/data_formats.c index bc492631416..1f25556665f 100644 --- a/dlls/dinput/data_formats.c +++ b/dlls/dinput/data_formats.c @@ -74,7 +74,7 @@ const DIDATAFORMAT c_dfDIJoystick = { sizeof(DIDATAFORMAT), sizeof(DIOBJECTDATAFORMAT), DIDF_ABSAXIS, - sizeof(DIJOYSTATE2), + sizeof(DIJOYSTATE), numObjects(dfDIJoystick), (LPDIOBJECTDATAFORMAT)dfDIJoystick }; diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index aea00df9cdb..4cce22219b7 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -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; }