diff options
author | Ladislav Zezula <zezula@volny.cz> | 2023-10-06 06:38:05 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2023-10-06 06:38:05 +0200 |
commit | 0d89b2b473dc618c5f5f5fb051121e34cdedad00 (patch) | |
tree | 1bfd88dd8719250ee7ffaa232747e6d5ab27ab08 /src/SFileCompactArchive.cpp | |
parent | c9ac60d64bf00bfd7a511dd2112a152942eb67a5 (diff) |
Fixed bug in SFileSetFileLocale
Diffstat (limited to 'src/SFileCompactArchive.cpp')
-rw-r--r-- | src/SFileCompactArchive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileCompactArchive.cpp b/src/SFileCompactArchive.cpp index d4525b6..1077daa 100644 --- a/src/SFileCompactArchive.cpp +++ b/src/SFileCompactArchive.cpp @@ -163,7 +163,7 @@ static DWORD CopyMpqFileSectors( if(dwErrCode == ERROR_SUCCESS && (pFileEntry->dwFlags & MPQ_FILE_ENCRYPTED))
{
dwFileKey2 = dwFileKey1 = hf->dwFileKey;
- if(pFileEntry->dwFlags & MPQ_FILE_FIX_KEY)
+ if(pFileEntry->dwFlags & MPQ_FILE_KEY_V2)
{
dwFileKey2 = (dwFileKey1 ^ pFileEntry->dwFileSize) - (DWORD)pFileEntry->ByteOffset;
dwFileKey2 = (dwFileKey2 + (DWORD)MpqFilePos) ^ pFileEntry->dwFileSize;
|