From c900a4774f418bca833ed0dec8b89dc600d029d4 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 27 Jan 2018 00:34:53 +0100 Subject: [PATCH] Fixed some compile-breaking mistakes in zip.c. --- src/zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zip.c b/src/zip.c index 2c2c6867f..6e622a5d8 100644 --- a/src/zip.c +++ b/src/zip.c @@ -503,9 +503,9 @@ int zip_load(uint8_t id, wchar_t *fn) fseek(zip_drives[id].f, 0, SEEK_END); size = ftell(zip_drives[id].f); - if (size == ((ZIP_250_SECTORS << 9) + 0x1000)) || (size == ((ZIP_SECTORS << 9) + 0x1000)) { + if ((size == ((ZIP_250_SECTORS << 9) + 0x1000)) || (size == ((ZIP_SECTORS << 9) + 0x1000))) { /* This is a ZDI image. */ - zip_drives[id].size -= 0x1000; + size -= 0x1000; zip_drives[id].base = 0x1000; } else zip_drives[id].base = 0;