diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2015-10-18 03:00:00 +0300 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:56 +0300 |
commit | a663a6deb7a150f935fac7efdbf4d53d27369594 (patch) | |
tree | d1be306b33dd96050206da5774fff7bd9083ddfa /CPP/7zip/Archive/MubHandler.cpp | |
parent | 6543c280208393fa32cb0094f770d14c1cfb13b2 (diff) |
15.0915.09
Diffstat (limited to 'CPP/7zip/Archive/MubHandler.cpp')
-rw-r--r-- | CPP/7zip/Archive/MubHandler.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/CPP/7zip/Archive/MubHandler.cpp b/CPP/7zip/Archive/MubHandler.cpp index 05ea4d9f..56b8aa32 100644 --- a/CPP/7zip/Archive/MubHandler.cpp +++ b/CPP/7zip/Archive/MubHandler.cpp @@ -56,8 +56,15 @@ class CHandler: public CHandlerCont CItem _items[kNumFilesMax]; HRESULT Open2(IInStream *stream); - virtual UInt64 GetItemPos(UInt32 index) const { return _items[index].Offset; } - virtual UInt64 GetItemSize(UInt32 index) const { return _items[index].Size; } + + virtual int GetItem_ExtractInfo(UInt32 index, UInt64 &pos, UInt64 &size) const + { + const CItem &item = _items[index]; + pos = item.Offset; + size = item.Size; + return NExtract::NOperationResult::kOK; + } + public: INTERFACE_IInArchive_Cont(;) }; |