mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 01:15:00 -06:00
15.07
This commit is contained in:
committed by
Kornel Lesiński
parent
cba375916f
commit
f6444c3256
@@ -216,10 +216,9 @@ void CArchiveExtractCallback::Init(
|
||||
// _progressTotal = 0;
|
||||
// _progressTotal_Defined = false;
|
||||
|
||||
_progressTotal = _packTotal;
|
||||
_progressTotal_Defined = true;
|
||||
|
||||
_packTotal = packSize;
|
||||
_progressTotal = packSize;
|
||||
_progressTotal_Defined = true;
|
||||
|
||||
_extractCallback2 = extractCallback2;
|
||||
_compressProgress.Release();
|
||||
@@ -962,7 +961,12 @@ if (askExtractMode == NArchive::NExtract::NAskMode::kExtract && !_testMode)
|
||||
bool isAnti = false;
|
||||
RINOK(_arc->IsItemAnti(index, isAnti));
|
||||
|
||||
Correct_FsPath(_pathMode == NExtract::NPathMode::kAbsPaths, pathParts, _item.MainIsDir);
|
||||
#ifdef SUPPORT_ALT_STREAMS
|
||||
if (!_item.IsAltStream
|
||||
|| !pathParts.IsEmpty()
|
||||
|| !(_removePartsForAltStreams || _pathMode == NExtract::NPathMode::kNoPathsAlt))
|
||||
#endif
|
||||
Correct_FsPath(_pathMode == NExtract::NPathMode::kAbsPaths, pathParts, _item.MainIsDir);
|
||||
|
||||
#ifdef SUPPORT_ALT_STREAMS
|
||||
|
||||
@@ -970,12 +974,18 @@ if (askExtractMode == NArchive::NExtract::NAskMode::kExtract && !_testMode)
|
||||
{
|
||||
UString s = _item.AltStreamName;
|
||||
Correct_AltStream_Name(s);
|
||||
bool needColon = ((!_removePartsForAltStreams && _pathMode != NExtract::NPathMode::kNoPathsAlt) || !pathParts.IsEmpty());
|
||||
bool needColon = true;
|
||||
|
||||
if (pathParts.IsEmpty())
|
||||
{
|
||||
pathParts.AddNew();
|
||||
if (_pathMode == NExtract::NPathMode::kAbsPaths &&
|
||||
if (_removePartsForAltStreams || _pathMode == NExtract::NPathMode::kNoPathsAlt)
|
||||
needColon = false;
|
||||
}
|
||||
else if (_pathMode == NExtract::NPathMode::kAbsPaths &&
|
||||
NWildcard::GetNumPrefixParts_if_DrivePath(pathParts) == pathParts.Size())
|
||||
pathParts.AddNew();
|
||||
|
||||
UString &name = pathParts.Back();
|
||||
if (needColon)
|
||||
name += (wchar_t)(_ntOptions.ReplaceColonForAltStream ? L'_' : L':');
|
||||
|
||||
Reference in New Issue
Block a user