Fixed the first batch of problems.

This commit is contained in:
OBattler
2020-01-15 03:04:59 +01:00
parent 714d77dedd
commit 8749776144
10 changed files with 62 additions and 26 deletions

View File

@@ -128,7 +128,8 @@ ps2_nvr_init(const device_t *info)
memset(nvr->ram, 0xff, 8192);
if (f != NULL) {
(void)fread(nvr->ram, 8192, 1, f);
if (fread(nvr->ram, 1, 8192, f) != 8192)
fatal("ps2_nvr_init(): Error reading EEPROM data\n");
fclose(f);
}