This commit is contained in:
love-code-yeyixiao 2024-09-06 15:30:32 +08:00
parent 2b61365c75
commit b2c9c002ac
1 changed files with 7 additions and 6 deletions

View File

@ -268,11 +268,12 @@ bool CArchive::Update(QMap<int, QIODevice*> *FileList, bool bDelete, const SComp
//(UInt32)8, // set number of CPU threads
true // file name encryption (7z only)
};
if(setProperties->SetProperties(names, values, kNumProps) != S_OK)
{
TRACE(L"ISetProperties failed");
Q_ASSERT(0);
if (m_ArchivePath.right(3).toLower().compare(".zip", Qt::CaseInsensitive) != 0) {
if (setProperties->SetProperties(names, values, kNumProps) != S_OK)
{
TRACE(L"ISetProperties failed");
Q_ASSERT(0);
}
}
}
@ -515,4 +516,4 @@ SArcInfo GetArcInfo(const QString &FileName)
if(ArcInfo.FormatIndex == 0) // not a known archive
ArcInfo.ArchiveExt.clear();
return ArcInfo;
}
}