mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Fix invalid long command line options causing infinite loop on Windows (issue #6477)
This commit is contained in:
parent
e71f56d4a3
commit
86d24a0fc4
@ -743,6 +743,11 @@ static void retroarch_parse_input_and_config(int argc, char *argv[])
|
||||
RARCH_OVERRIDE_SETTING_STATE_PATH, NULL);
|
||||
break;
|
||||
|
||||
/* Must handle '?' otherwise you get an infinite loop */
|
||||
case '?':
|
||||
retroarch_print_help(argv[0]);
|
||||
retroarch_fail(1, "retroarch_parse_input()");
|
||||
break;
|
||||
/* All other arguments are handled in the second pass */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user