Fixed logic error in HID Utilities driver (">=" should have been "<").
authorRyan C. Gordon <icculus@icculus.org>
Fri, 08 Jul 2011 21:52:24 -0700
changeset 106 b17ebea098d4
parent 105 45352ad2241b
child 107 7a5feffe807b
Fixed logic error in HID Utilities driver (">=" should have been "<").

Fixes driver returning NULL for names.
macosx_hidutilities.c
--- a/macosx_hidutilities.c	Wed Apr 27 03:32:55 2011 -0400
+++ b/macosx_hidutilities.c	Fri Jul 08 21:52:24 2011 -0700
@@ -1611,7 +1611,7 @@
 
 static const char *macosx_hidutilities_name(unsigned int index)
 {
-    return (index >= available_mice) ? devices[index]->product : NULL;
+    return (index < available_mice) ? devices[index]->product : NULL;
 } /* macosx_hidutilities_name */