Merge pull request #6479 from Dwedit/fix_command_line

Fix invalid long command line options causing infinite loop on Windows (issue #6477)
This commit is contained in:
Twinaphex 2018-03-28 17:19:46 +02:00 committed by GitHub
commit 8c6f05e715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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