Commit ed808783 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

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

hang.
parent d4fb0570
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment