From 44912fddf14413bdcadaff4bbe8a1c841aafa36c Mon Sep 17 00:00:00 2001 From: dinkc64 Date: Sat, 28 Sep 2024 09:17:11 -0400 Subject: [PATCH] zipfn, check status --- src/burner/zipfn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/burner/zipfn.cpp b/src/burner/zipfn.cpp index e1cdc26ff..e40f149bb 100644 --- a/src/burner/zipfn.cpp +++ b/src/burner/zipfn.cpp @@ -31,7 +31,10 @@ INT32 ZipOpen(char* szZip) Zip = unzOpen(szFileName); if (Zip != NULL) { nFileType = ZIPFN_FILETYPE_ZIP; - unzGoToFirstFile(Zip); + if (unzGoToFirstFile(Zip) != UNZ_OK) { + unzClose(Zip); + return 1; + } nCurrFile = 0; return 0;