zipfn, check status

This commit is contained in:
dinkc64 2024-09-28 09:17:11 -04:00
parent 15443f9d35
commit 44912fddf1

View File

@ -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;