dinput: Ensure that the size of the dev caps pointer is large enough - no exact.
This commit is contained in:
parent
ba1ef69a41
commit
f37f598daf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue