diff options
author | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-01-12 04:58:27 +0100 |
---|---|---|
committer | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-01-12 04:58:27 +0100 |
commit | 9915997070a0b7e6c487d0bd5252eb2f8dab5573 (patch) | |
tree | 6851b86a5ba2c703caac4214f2db34c6336ee871 /src | |
parent | 57f87e898dad23b9ab46bfc137d79a54d138f70c (diff) |
+ By "2 GB", I really mean 2 GB.
Diffstat (limited to 'src')
-rw-r--r-- | src/SBaseFileTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index c7a26aa..50bf69e 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -600,7 +600,7 @@ static bool IsValidHashEntry1(TMPQArchive * ha, TMPQHash * pHash, TMPQBlock * pB // Check whether this is an existing file
// Also we do not allow to be file size greater than 2GB
- if((pBlock->dwFlags & MPQ_FILE_EXISTS) && (pBlock->dwFSize & 0x8000000) == 0)
+ if((pBlock->dwFlags & MPQ_FILE_EXISTS) && (pBlock->dwFSize & 0x80000000) == 0)
{
// The begin of the file must be within the archive
ByteOffset = FileOffsetFromMpqOffset(ha, pBlock->dwFilePos);
|