diff --git a/src/burner/zipfn.cpp b/src/burner/zipfn.cpp index e1cdc26ff5..e40f149bbb 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;