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

Christoph Frick frick at sc-networks.de
Mon Dec 11 03:05:22 CST 2006


IL2 brings in a pointer with 176 set in dwSize; as long as we dont know what
this size is we can actually use it anyway
---
 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 661a4db..afd23d9 100644
--- a/dlls/dinput/joystick_linuxinput.c
+++ b/dlls/dinput/joystick_linuxinput.c
@@ -1100,7 +1100,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;
     }
-- 
1.4.4.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061211/23809917/attachment.pgp


More information about the wine-patches mailing list