From 7e175200d6e6f17b7b9833e102ce2bd7dda25eb8 Mon Sep 17 00:00:00 2001 From: VDm Date: Wed, 7 Feb 2024 01:24:27 +0400 Subject: [PATCH] fix(stormlib): dwFlags argument for SFileOpenPatchArchive --- vendor/stormlib-9/src/SFilePatchArchives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/stormlib-9/src/SFilePatchArchives.cpp b/vendor/stormlib-9/src/SFilePatchArchives.cpp index 03d5674..adc5a69 100644 --- a/vendor/stormlib-9/src/SFilePatchArchives.cpp +++ b/vendor/stormlib-9/src/SFilePatchArchives.cpp @@ -1126,7 +1126,7 @@ bool WINAPI SFileOpenPatchArchive( // Open the archive like it is normal archive if(dwErrCode == ERROR_SUCCESS) { - if(SFileOpenArchive(szPatchMpqName, 0, MPQ_OPEN_READ_ONLY | MPQ_OPEN_PATCH, &hPatchMpq)) + if(SFileOpenArchive(szPatchMpqName, 0, MPQ_OPEN_READ_ONLY | MPQ_OPEN_PATCH | dwFlags, &hPatchMpq)) { // Cast the archive handle to structure pointer haPatch = (TMPQArchive *)hPatchMpq;