Skip to content
Snippets Groups Projects
Commit ed808783 authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

Reading joystick 5 when we only support 4 should fail instead of

hang.
parent d4fb0570
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ BOOL16 joyOpenDriver(WORD wID)
char dev_name[] = "/dev/js%d";
char buf[20];
if (wID>3) return FALSE;
if (joy_dev[wID] >= 0) return TRUE;
sprintf(buf,dev_name,wID);
if ((joy_dev[wID] = open(buf, O_RDONLY)) >= 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment