Fix missing check on PS/2 Model 30-286 ROM load - fixes crash when no ROMs present. Patch from AmatCoder.

This commit is contained in:
SarahW 2017-03-03 19:38:00 +00:00
commit 76cdb63bc6

View file

@ -620,6 +620,7 @@ int loadbios()
case ROM_IBMPS2_M30_286: case ROM_IBMPS2_M30_286:
f = romfopen("roms/ibmps2_m30_286/33f5381a.bin", "rb"); f = romfopen("roms/ibmps2_m30_286/33f5381a.bin", "rb");
if (!f) break;
fread(rom, 0x20000, 1, f); fread(rom, 0x20000, 1, f);
fclose(f); fclose(f);
biosmask = 0x1ffff; biosmask = 0x1ffff;