ATi Mach8 EEPROM: Remove superfluous (and emulator-crashing!) fseek().

This commit is contained in:
OBattler
2025-11-05 15:03:32 +01:00
parent 031c382c3e
commit 3dc3cfc00d

View File

@@ -54,9 +54,8 @@ ati_eeprom_load_mach8(ati_eeprom_t *eeprom, char *fn, int mca)
strncpy(eeprom->fn, fn, sizeof(eeprom->fn) - 1);
fp = nvr_fopen(eeprom->fn, "rb");
size = 128;
if (!fp) {
if (fp == NULL) {
if (mca) {
(void) fseek(fp, 2L, SEEK_SET);
memset(eeprom->data + 2, 0xff, size - 2);
fp = nvr_fopen(eeprom->fn, "wb");
fwrite(eeprom->data, 1, size, fp);