Skip to content

Commit

Permalink
zipfn, check status
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Sep 28, 2024
1 parent 15443f9 commit 44912fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/burner/zipfn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 44912fd

Please sign in to comment.