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/Chm | |
parent | b67ffe691bddceb89b47dd09a60203b77a2b72ed (diff) |
4.56 beta
Diffstat (limited to 'CPP/7zip/Archive/Chm')
-rwxr-xr-x | CPP/7zip/Archive/Chm/ChmIn.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/CPP/7zip/Archive/Chm/ChmIn.cpp b/CPP/7zip/Archive/Chm/ChmIn.cpp index 8c56ec91..5e13f54b 100755 --- a/CPP/7zip/Archive/Chm/ChmIn.cpp +++ b/CPP/7zip/Archive/Chm/ChmIn.cpp @@ -759,9 +759,23 @@ HRESULT CInArchive::OpenHighLevel(IInStream *inStream, CFilesDatabase &database) li.ResetInterval = ReadUInt32(); li.WindowSize = ReadUInt32(); li.CacheSize = ReadUInt32(); - if (li.ResetInterval != 2 && li.ResetInterval != 4) + if ( + li.ResetInterval != 1 && + li.ResetInterval != 2 && + li.ResetInterval != 4 && + li.ResetInterval != 8 && + li.ResetInterval != 16 && + li.ResetInterval != 32 && + li.ResetInterval != 64) return S_FALSE; - if (li.WindowSize != 2 && li.WindowSize != 4) + if ( + li.WindowSize != 1 && + li.WindowSize != 2 && + li.WindowSize != 4 && + li.WindowSize != 8 && + li.WindowSize != 16 && + li.WindowSize != 32 && + li.WindowSize != 64) return S_FALSE; numDWORDS -= 5; while (numDWORDS-- != 0) |