mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 17:15:00 -06:00
9.18
This commit is contained in:
committed by
Kornel Lesiński
parent
2eb60a0598
commit
c65230d858
@@ -111,6 +111,7 @@ HRESULT CArc::OpenStream(
|
||||
IArchiveOpenCallback *callback)
|
||||
{
|
||||
Archive.Release();
|
||||
ErrorMessage.Empty();
|
||||
const UString fileName = ExtractFileNameFromPath(Path);
|
||||
UString extension;
|
||||
{
|
||||
@@ -298,6 +299,13 @@ HRESULT CArc::OpenStream(
|
||||
if (result == S_FALSE)
|
||||
continue;
|
||||
RINOK(result);
|
||||
|
||||
{
|
||||
NCOM::CPropVariant prop;
|
||||
archive->GetArchiveProperty(kpidError, &prop);
|
||||
if (prop.vt != VT_EMPTY)
|
||||
ErrorMessage = (prop.vt == VT_BSTR) ? prop.bstrVal : L"Unknown error";
|
||||
}
|
||||
|
||||
Archive = archive;
|
||||
const CArcInfoEx &format = codecs->Formats[FormatIndex];
|
||||
|
||||
Reference in New Issue
Block a user