fix: SoleFolderIndex: continue fixing method decl/impl

This commit is contained in:
shunf4
2024-05-10 19:40:20 +08:00
parent 5be705687e
commit e76e0f5d57
3 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ Z7_COM7F_IMF(CAgentFolder::CopyTo(Int32 moveMode, const UInt32 *indices, UInt32
NExtract::NPathMode::kNoPaths;
Int64 soleFolderIndex;
extractCallback2->GetSoleFolderIndex(&soleFolderIndex);
callback->GetSoleFolderIndex(&soleFolderIndex);
return Extract(indices, numItems,
includeAltStreams, replaceAltStreamCharsMode,

View File

@@ -27,6 +27,7 @@ IArchiveFolder is used by:
x(Extract(const UInt32 *indices, UInt32 numItems, \
Int32 includeAltStreams, \
Int32 replaceAltStreamCharsMode, \
Int64 soleFolderIndex, \
NExtract::NPathMode::EEnum pathMode, \
NExtract::NOverwriteMode::EEnum overwriteMode, \
const wchar_t *path, Int32 testMode, \

View File

@@ -109,9 +109,9 @@ HRESULT CPanelCopyThread::ProcessVirt()
options->folder, BoolToInt(true), extractCallback2);
}
else
CMyComPtr<IFolderArchiveExtractCallback> extractCallback2;
RINOK(ExtractCallback.QueryInterface(IID_IFolderArchiveExtractCallback, &extractCallback2))
extractCallback2->SetSoleFolderIndex(options->soleFolderIndex);
// CMyComPtr<IFolderArchiveExtractCallback> extractCallback2;
// RINOK(ExtractCallback.QueryInterface(IID_IFolderArchiveExtractCallback, &extractCallback2))
ExtractCallback->SetSoleFolderIndex(options->soleFolderIndex);
result2 = FolderOperations->CopyTo(
BoolToInt(options->moveMode),
&Indices.Front(), Indices.Size(),