From fab0a368f1ce4ad39354fdbfd2c3877d1562b5a3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 03:06:16 +0100 Subject: [PATCH] Fixed a newly introduced bug. --- src/video/vid_ati_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/vid_ati_eeprom.c b/src/video/vid_ati_eeprom.c index 00e193913..c7debfcf2 100644 --- a/src/video/vid_ati_eeprom.c +++ b/src/video/vid_ati_eeprom.c @@ -65,7 +65,7 @@ void ati_eeprom_load(ati_eeprom_t *eeprom, wchar_t *fn, int type) else wcsncpy(eeprom->fn, fn, 256); f = nvr_fopen(eeprom->fn, L"rb"); - int size = eeprom->type ? 512 : 128; + size = eeprom->type ? 512 : 128; if (!f) { memset(eeprom->data, 0, size); return;