mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
plib: fix crash when argument is missing. (nw)
This commit is contained in:
parent
eec0b202b0
commit
6ed04fe619
@ -158,7 +158,9 @@ namespace plib {
|
||||
}
|
||||
else
|
||||
{
|
||||
i++; // FIXME: are there more arguments?
|
||||
i++;
|
||||
if (i >= argc)
|
||||
return i - 1;
|
||||
if (opt->do_parse(pstring(argv[i])) != 0)
|
||||
return i - 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user