Fix invalid long command line options causing infinite loop on Windows (issue #6477)

This commit is contained in:
Dwedit 2018-03-28 10:08:57 -05:00
parent e71f56d4a3
commit 86d24a0fc4

View File

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