fix(stormlib): dwFlags argument for SFileOpenPatchArchive

This commit is contained in:
VDm 2024-02-07 01:24:27 +04:00
parent f9f7da8601
commit 7e175200d6

View File

@ -1126,7 +1126,7 @@ bool WINAPI SFileOpenPatchArchive(
// Open the archive like it is normal archive // Open the archive like it is normal archive
if(dwErrCode == ERROR_SUCCESS) 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 // Cast the archive handle to structure pointer
haPatch = (TMPQArchive *)hPatchMpq; haPatch = (TMPQArchive *)hPatchMpq;