burner/conc.cpp: avoid crashing on line w/weird data

This commit is contained in:
dinkc64 2019-08-04 22:51:07 -04:00
parent cfc8a18cac
commit 65af3fe140
1 changed files with 1 additions and 0 deletions

View File

@ -554,6 +554,7 @@ static INT32 ConfigParseMAMEFile()
INT32 nPlus1 = (flags & 0x300) ? 1 : 0; // displayed value +1?
//bprintf(0, _T("adding .. %X. options\n"), nTotal);
if (nTotal > 0xff) continue; // bad entry (roughrac has this)
for (nValue = 0; nValue < nTotal; nValue++) {
swprintf(tmp2, L"# %d.", nValue + nPlus1);
n++;