Fixed the first batch of problems.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user