diff options
Diffstat (limited to 'CPP/7zip/UI/Agent/Agent.cpp')
-rw-r--r-- | CPP/7zip/UI/Agent/Agent.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CPP/7zip/UI/Agent/Agent.cpp b/CPP/7zip/UI/Agent/Agent.cpp index e4f46f0a..d8221754 100644 --- a/CPP/7zip/UI/Agent/Agent.cpp +++ b/CPP/7zip/UI/Agent/Agent.cpp @@ -195,6 +195,8 @@ STDMETHODIMP_(UInt64) CAgentFolder::GetItemSize(UInt32 index) const CProxyFolder &item = _proxyArchive->Folders[folder->Folders[realIndex]]; if (!_flatMode) return item.Size; + if (!item.IsLeaf) + return 0; arcIndex = item.Index; } else |