mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 09:58:19 -07:00
ATi Mach8 EEPROM: Remove superfluous (and emulator-crashing!) fseek().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user