mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
Modified ZipArchive::createReadStreamForMember to check whether the zip archive contains a file with the given name
svn-id: r38786
This commit is contained in:
parent
8fb7fd0681
commit
c397b37bfb
@ -1432,7 +1432,8 @@ Common::SeekableReadStream *ZipArchive::createReadStreamForMember(const Common::
|
||||
if (!_zipFile)
|
||||
return 0;
|
||||
|
||||
unzLocateFile(_zipFile, name.c_str(), 2);
|
||||
if (unzLocateFile(_zipFile, name.c_str(), 2) != UNZ_OK)
|
||||
return 0;
|
||||
|
||||
unz_file_info fileInfo;
|
||||
unzOpenCurrentFile(_zipFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user