8514/A: Fix first NVRAM initialization on MCA bus version made by ATI

Prior to this change it was not possible to start the emulated machine
with this graphics adapter installed on any operating system different
from Windows, causing crash with exit code 11.
This commit is contained in:
Vitaly Orekhov
2025-11-05 15:59:43 +03:00
parent 031c382c3e
commit 138929caec

View File

@@ -56,7 +56,6 @@ ati_eeprom_load_mach8(ati_eeprom_t *eeprom, char *fn, int mca)
size = 128;
if (!fp) {
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);