From b5dc853b2496447f0a54b3b25cb2659b575c56ef Mon Sep 17 00:00:00 2001 From: Igor Pavlov Date: Tue, 29 Aug 2017 20:49:43 +0100 Subject: 17.01 --- CPP/7zip/UI/Agent/Agent.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'CPP/7zip/UI/Agent') diff --git a/CPP/7zip/UI/Agent/Agent.cpp b/CPP/7zip/UI/Agent/Agent.cpp index 9b841ce2..dbcd6fff 100644 --- a/CPP/7zip/UI/Agent/Agent.cpp +++ b/CPP/7zip/UI/Agent/Agent.cpp @@ -1453,7 +1453,12 @@ STDMETHODIMP CAgentFolder::Extract(const UInt32 *indices, pathMode = NExtract::NPathMode::kNoPathnames; */ - extractCallbackSpec->InitForMulti(false, pathMode, overwriteMode); + extractCallbackSpec->InitForMulti( + false, // multiArchives + pathMode, + overwriteMode, + true // keepEmptyDirPrefixes + ); if (extractCallback2) extractCallback2->SetTotal(_agentSpec->GetArc().GetEstmatedPhySize()); @@ -1717,7 +1722,12 @@ STDMETHODIMP CAgent::Extract( COM_TRY_BEGIN CArchiveExtractCallback *extractCallbackSpec = new CArchiveExtractCallback; CMyComPtr extractCallback = extractCallbackSpec; - extractCallbackSpec->InitForMulti(false, pathMode, overwriteMode); + extractCallbackSpec->InitForMulti( + false, // multiArchives + pathMode, + overwriteMode, + true // keepEmptyDirPrefixes + ); CExtractNtOptions extractNtOptions; extractNtOptions.AltStreams.Val = true; // change it!!! -- cgit v1.2.3