Skip to content

Commit

Permalink
Fixed logic error in HID Utilities driver (">=" should have been "<").
Browse files Browse the repository at this point in the history
Fixes driver returning NULL for names.
  • Loading branch information
icculus committed Jul 9, 2011
1 parent 70670da commit 2650e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macosx_hidutilities.c
Expand Up @@ -1611,7 +1611,7 @@ static int macosx_hidutilities_init(void)

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 */


Expand Down

0 comments on commit 2650e2c

Please sign in to comment.