From 0dc16c691d208c904468ba4a2779bbe3a2b4dc4b Mon Sep 17 00:00:00 2001 From: Igor Pavlov Date: Sun, 7 Dec 2014 00:00:00 +0000 Subject: 9.35 --- CPP/7zip/UI/Agent/Agent.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CPP/7zip/UI/Agent') 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 -- cgit v1.2.3