diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2007-10-24 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:55 +0300 |
commit | acd742622d1e0daf50ae815bec4ddb2143bafbf5 (patch) | |
tree | 9726a4b8de0935af6c892a2b8d632284f37570c4 /CPP/7zip/Archive/Common | |
parent | b67ffe691bddceb89b47dd09a60203b77a2b72ed (diff) |
4.56 beta
Diffstat (limited to 'CPP/7zip/Archive/Common')
-rwxr-xr-x | CPP/7zip/Archive/Common/HandlerOut.cpp | 9 | ||||
-rwxr-xr-x | CPP/7zip/Archive/Common/HandlerOut.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/Common/HandlerOut.cpp b/CPP/7zip/Archive/Common/HandlerOut.cpp index 7c214c3c..0dcf449e 100755 --- a/CPP/7zip/Archive/Common/HandlerOut.cpp +++ b/CPP/7zip/Archive/Common/HandlerOut.cpp @@ -468,6 +468,7 @@ void COutHandler::Init() _level = 5; _autoFilter = true; _volumeMode = false; + _crcSize = 4; InitSolid(); } @@ -481,6 +482,7 @@ void COutHandler::BeforeSetProperty() mainDicSize = 0xFFFFFFFF; mainDicMethodIndex = 0xFFFFFFFF; minNumber = 0; + _crcSize = 4; } HRESULT COutHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &value) @@ -507,6 +509,13 @@ HRESULT COutHandler::SetProperty(const wchar_t *nameSpec, const PROPVARIANT &val return SetSolidSettings(name); } + if (name == L"CRC") + { + _crcSize = 4; + name.Delete(0, 3); + return ParsePropValue(name, value, _crcSize); + } + UInt32 number; int index = ParseStringToUInt32(name, number); UString realName = name.Mid(index); diff --git a/CPP/7zip/Archive/Common/HandlerOut.h b/CPP/7zip/Archive/Common/HandlerOut.h index eded0786..ab925cc3 100755 --- a/CPP/7zip/Archive/Common/HandlerOut.h +++ b/CPP/7zip/Archive/Common/HandlerOut.h @@ -26,6 +26,8 @@ public: UInt32 _numThreads; #endif + UInt32 _crcSize; + CObjectVector<COneMethodInfo> _methods; bool _removeSfxBlock; |