aboutsummaryrefslogtreecommitdiff
path: root/src/SFilePatchArchives.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2022-03-28 07:41:30 +0200
committerGitHub <noreply@github.com>2022-03-28 07:41:30 +0200
commit6ce383a2fa1ff18c32b32347a01f36173699da6c (patch)
tree707386a3277beaf1a4be3f8be875c9f11168f89d /src/SFilePatchArchives.cpp
parent5f6477c7f93fddf3a61c5166f661a8bb9f596730 (diff)
parentd1b47ab454e9f20589c6b47c78e5875e19888cdf (diff)
Merge pull request #249 from GaryOderNichts/big-endian-fixes
Hello, thank you for the bug fixes.
Diffstat (limited to 'src/SFilePatchArchives.cpp')
-rw-r--r--src/SFilePatchArchives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFilePatchArchives.cpp b/src/SFilePatchArchives.cpp
index 89f05a0..e5fe32b 100644
--- a/src/SFilePatchArchives.cpp
+++ b/src/SFilePatchArchives.cpp
@@ -480,7 +480,7 @@ static bool IsMatchingPatchFile(
{
// Load the patch header
SFileReadFile(hFile, &PatchHeader, sizeof(MPQ_PATCH_HEADER), &dwTransferred, NULL);
- BSWAP_ARRAY32_UNSIGNED(pPatchHeader, sizeof(DWORD) * 6);
+ BSWAP_ARRAY32_UNSIGNED(&PatchHeader, sizeof(DWORD) * 6);
// If the file contains an incremental patch,
// compare the "MD5 before patching" with the base file MD5