diff options
Diffstat (limited to '7zip/UI/Agent/AgentOut.cpp')
-rwxr-xr-x | 7zip/UI/Agent/AgentOut.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/7zip/UI/Agent/AgentOut.cpp b/7zip/UI/Agent/AgentOut.cpp index 5d2b4bba..ea556d49 100755 --- a/7zip/UI/Agent/AgentOut.cpp +++ b/7zip/UI/Agent/AgentOut.cpp @@ -1,4 +1,4 @@ -// AgentOutcpp +// AgentOut.cpp #include "StdAfx.h" @@ -161,8 +161,13 @@ STDMETHODIMP CAgent::DoOperation( UString folderPrefix = _folderPrefix; NFile::NName::NormalizeDirPathPrefix(folderPrefix); - UString errorPath; - RINOK(::EnumerateDirItems(folderPrefix, _names, _archiveNamePrefix, dirItems, errorPath)); + UStringVector errorPaths; + CRecordVector<DWORD> errorCodes; + ::EnumerateDirItems(folderPrefix, _names, _archiveNamePrefix, dirItems, errorPaths, errorCodes); + if (errorCodes.Size() > 0) + { + return errorCodes.Front(); + } NWindows::NDLL::CLibrary library; |