From 606f07e42a908ff8a7f3a999afd1001efd5caaeb Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Wed, 19 Jan 2005 00:11:32 +0000 Subject: [PATCH] Close zip files properly when IPS is not found in zip. --- zsnes/src/patch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zsnes/src/patch.c b/zsnes/src/patch.c index 99297faf..dc4baf36 100644 --- a/zsnes/src/patch.c +++ b/zsnes/src/patch.c @@ -282,6 +282,7 @@ void findZipIPS(char *compressedfile) if (!FoundIPS) { unzClose(IPSPatch.zipfile); + IPSPatch.zipfile = 0; return; }