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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 11 07:45:05 CST 2006


Module: wine
Branch: master
Commit: f37f598daf909642cb970880e072dfda329face2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f37f598daf909642cb970880e072dfda329face2

Author: Christoph Frick <frick at 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;
     }




More information about the wine-cvs mailing list