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

dinput: Ensure that the size of the dev caps pointer is large enough - no exact.

parent ba1ef69a
...@@ -1097,7 +1097,7 @@ static HRESULT WINAPI JoystickAImpl_GetCapabilities( ...@@ -1097,7 +1097,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