Fixed a newly introduced bug.
This commit is contained in:
@@ -65,7 +65,7 @@ void ati_eeprom_load(ati_eeprom_t *eeprom, wchar_t *fn, int type)
|
|||||||
else
|
else
|
||||||
wcsncpy(eeprom->fn, fn, 256);
|
wcsncpy(eeprom->fn, fn, 256);
|
||||||
f = nvr_fopen(eeprom->fn, L"rb");
|
f = nvr_fopen(eeprom->fn, L"rb");
|
||||||
int size = eeprom->type ? 512 : 128;
|
size = eeprom->type ? 512 : 128;
|
||||||
if (!f) {
|
if (!f) {
|
||||||
memset(eeprom->data, 0, size);
|
memset(eeprom->data, 0, size);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user