Build fixes, crashfix on fail-to-open

This commit is contained in:
Henrik Rydgård committed 2026-03-27 14:34:18 -06:00
1 parent 288b72cb16
commit 99d5bcc26d
6 files changed
+142 -12

No files matched your search

+4 -2
View File
@@ -45,8 +45,10 @@ InstallZipScreen::InstallZipScreen(const Path &zipPath) : UITwoPaneBaseDialogScr
if (zipPath.GetFileExtension() == ".7z") {
SevenZipFileReader *sevenZipFile = SevenZipFileReader::Create(zipPath, "");
DetectArchiveContents(sevenZipFile, &zipFileInfo_); // Even if this fails, it sets zipInfo->contents.
delete sevenZipFile;
if (sevenZipFile) {
DetectArchiveContents(sevenZipFile, &zipFileInfo_); // Even if this fails, it sets zipInfo->contents.
delete sevenZipFile;
}
} else {
ZipContainer zipFile = ZipOpenPath(zipPath_);
if (zipFile) {