aboutsummaryrefslogtreecommitdiff
path: root/src/SFileGetFileInfo.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2023-10-06 06:38:05 +0200
committerLadislav Zezula <zezula@volny.cz>2023-10-06 06:38:05 +0200
commit0d89b2b473dc618c5f5f5fb051121e34cdedad00 (patch)
tree1bfd88dd8719250ee7ffaa232747e6d5ab27ab08 /src/SFileGetFileInfo.cpp
parentc9ac60d64bf00bfd7a511dd2112a152942eb67a5 (diff)
Fixed bug in SFileSetFileLocale
Diffstat (limited to 'src/SFileGetFileInfo.cpp')
-rw-r--r--src/SFileGetFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileGetFileInfo.cpp b/src/SFileGetFileInfo.cpp
index 2a4d7b3..7a8afe0 100644
--- a/src/SFileGetFileInfo.cpp
+++ b/src/SFileGetFileInfo.cpp
@@ -437,7 +437,7 @@ bool WINAPI SFileGetFileInfo(
case SFileInfoEncryptionKeyRaw:
dwInt32Value = hf->dwFileKey;
- if(pFileEntry->dwFlags & MPQ_FILE_FIX_KEY)
+ if(pFileEntry->dwFlags & MPQ_FILE_KEY_V2)
dwInt32Value = (dwInt32Value ^ pFileEntry->dwFileSize) - (DWORD)hf->MpqFilePos;
return GetInfo(pvFileInfo, cbFileInfo, &dwInt32Value, sizeof(DWORD), pcbLengthNeeded);