dinput joystick enum bug patch
Robert Reif
reif at earthlink.net
Fri Sep 3 15:13:52 CDT 2004
Didn't fix the W function right in my last patch.
-------------- next part --------------
Index: dlls/dinput/joystick_linux.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/joystick_linux.c,v
retrieving revision 1.10
diff -u -r1.10 joystick_linux.c
--- dlls/dinput/joystick_linux.c 3 Sep 2004 18:55:01 -0000 1.10
+++ dlls/dinput/joystick_linux.c 3 Sep 2004 20:10:16 -0000
@@ -162,7 +162,7 @@
if ((dwDevType==0) || (GET_DIDEVICE_TYPE(dwDevType)==DIDEVTYPE_JOYSTICK)) {
/* check whether we have a joystick */
- if ((fd = open(JOYDEV,O_RDONLY) < 0)) {
+ if ((fd = open(JOYDEV,O_RDONLY)) < 0) {
WARN("open(%s,O_RDONLY) failed: %s\n", JOYDEV, strerror(errno));
return FALSE;
}
More information about the wine-patches
mailing list