diff options
author | Ladislav Zezula <zezula@volny.cz> | 2025-04-22 22:40:25 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2025-04-22 22:40:25 +0200 |
commit | c9620d7824e58bdc79a0fde09003ec047b1af3f6 (patch) | |
tree | f2ed61dbaf5f0ce648e7c1b940c78731294b1494 /src/SFileReadFile.cpp | |
parent | 4f4e2154cd9bb788186e4985104b58c4a5ee3d72 (diff) |
Fixed more bugs from POCs
Diffstat (limited to 'src/SFileReadFile.cpp')
-rw-r--r-- | src/SFileReadFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp index 1e990aa..f2c17ba 100644 --- a/src/SFileReadFile.cpp +++ b/src/SFileReadFile.cpp @@ -310,7 +310,7 @@ static DWORD ReadMpqFileSingleUnit(TMPQFile * hf, void * pvBuffer, DWORD dwFileP // deDE\DBFilesClient\MountCapability.dbc 0x93->0x77 0x77 0x77 No // - if(pFileEntry->dwFlags & MPQ_FILE_PATCH_FILE) + if(pFileEntry->dwFlags & MPQ_FILE_PATCH_FILE && cbInBuffer > sizeof(TPatchInfo)) cbInBuffer = cbInBuffer - sizeof(TPatchInfo); // Is the file compressed by Blizzard's multiple compression ? |