Christoph Frick : dinput: Ensure that the size of the dev caps pointer is large enough - no exact.
Module: wine Branch: master Commit: f37f598daf909642cb970880e072dfda329face2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f37f598daf909642cb970880e0... Author: Christoph Frick <frick(a)sc-networks.de> Date: Mon Dec 11 10:05:22 2006 +0100 dinput: Ensure that the size of the dev caps pointer is large enough - no exact. --- dlls/dinput/joystick_linuxinput.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index 0ba4877..868fe89 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -1097,7 +1097,7 @@ static HRESULT WINAPI JoystickAImpl_GetC return E_POINTER; } - if (lpDIDevCaps->dwSize != sizeof(DIDEVCAPS)) { + if (lpDIDevCaps->dwSize < sizeof(DIDEVCAPS)) { WARN("invalid argument\n"); return DIERR_INVALIDPARAM; }
participants (1)
-
Alexandre Julliard