diff options
author | Ladislav Zezula <zezula@volny.cz> | 2023-12-30 09:02:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 09:02:20 +0100 |
commit | 8978bdc8214f4ec3543ac11962fc094c3b0803b2 (patch) | |
tree | 0b819048623265303dc22374831cc1f84be6f328 /src/SFileCreateArchive.cpp | |
parent | 61b6665433e8de0e4be68e69ddfb0128421d4057 (diff) | |
parent | 909ff807e78b0b92afffaf0d5ed7149982d8ac33 (diff) |
Merge pull request #316 from ladislav-zezula/LZ_HashEntryIndex_Fix
Multiple changes
Diffstat (limited to 'src/SFileCreateArchive.cpp')
-rw-r--r-- | src/SFileCreateArchive.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SFileCreateArchive.cpp b/src/SFileCreateArchive.cpp index c0ea367..bae3dcc 100644 --- a/src/SFileCreateArchive.cpp +++ b/src/SFileCreateArchive.cpp @@ -238,6 +238,9 @@ bool WINAPI SFileCreateArchive2(const TCHAR * szMpqName, PSFILE_CREATE_MPQ pCrea pHeader->dwBlockTablePos = pHeader->dwHashTablePos + dwHashTableSize * sizeof(TMPQHash); pHeader->dwBlockTableSize = dwBlockTableSize; + // Set the mask for MPQ byte offset + ha->FileOffsetMask = GetFileOffsetMask(ha); + // For MPQs version 4 and higher, we set the size of raw data block // for calculating MD5 if(pCreateInfo->dwMpqVersion >= MPQ_FORMAT_VERSION_4) |