mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Add a safety check in DetectZipFileContents
This commit is contained in:
1 parent
b43a86a9f3
commit
e2b99fc921
3 files changed
+9
No files matched your search
@@ -27,6 +27,7 @@ ZipFileLoader::ZipFileLoader(FileLoader *sourceLoader)
|
||||
if (!zipArchive_) {
|
||||
ERROR_LOG(Log::IO, "Failed to open ZIP archive: %s", zip_error_strerror(&error));
|
||||
zip_source_free(zipSource);
|
||||
// zipArchive_ is already nullptr here.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user