Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CPP/7zip/UI/Common/Extract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ static HRESULT DecompressArchive(
{
fileCountWithinArchive++;

OutputDebugString(L"ExtractionStatus::SkipDueToMaxCount");

// Get uncompressed size
NCOM::CPropVariant sizeProp;
if (SUCCEEDED(archive->GetProperty(i, kpidSize, &sizeProp)) && sizeProp.vt == VT_UI8)
Expand Down Expand Up @@ -176,11 +174,12 @@ static HRESULT DecompressArchive(
int efg = result.Len();
int iExtractLen = (arc.filePath.Len() + efg + 1); // inital path + "\" + item path

/*
if (iExtractLen >= MAX_PATH)
{
continue;
}

*/
if (elimIsPossible
|| !allFilesAreAllowed
|| options.ExcludeDirItems
Expand Down Expand Up @@ -401,11 +400,13 @@ HRESULT Extract(
return errorCode;
}
}
/*
if (arrcPath.Len() >= MAX_PATH) // new add so that it can skip files whose path length is reater or equal to 256
{
skipArcs[i] = true;
continue;
}
*/
arcSizes.Add(fi.Size);
totalPackSize += fi.Size;
skipArcs[i] = false;
Expand Down