mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 08:59:39 +00:00
zipfn, check status
This commit is contained in:
parent
15443f9d35
commit
44912fddf1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user