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

This commit is contained in:
Christoph Frick 2006-12-11 10:05:22 +01:00 committed by Alexandre Julliard
parent ba1ef69a41
commit f37f598daf
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,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;
}