diff options
author | Ladislav Zezula <zezula@volny.cz> | 2024-04-16 14:26:13 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2024-04-16 14:26:13 +0200 |
commit | 25f52b76295eec974fba4b79869c664b338cf258 (patch) | |
tree | 8d5fb315edbd6f2d1792a6b74579003da3f76700 /src/SFileReadFile.cpp | |
parent | 29901739a2506999955e1fdd5a2f8f7b2140b089 (diff) |
Added test results for the unsupported MPQ
Diffstat (limited to 'src/SFileReadFile.cpp')
-rw-r--r-- | src/SFileReadFile.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp index b0698c1..153401a 100644 --- a/src/SFileReadFile.cpp +++ b/src/SFileReadFile.cpp @@ -194,6 +194,13 @@ static DWORD ReadMpqSectors(TMPQFile * hf, LPBYTE pbBuffer, DWORD dwByteOffset, dwErrCode = ERROR_FILE_CORRUPT; break; } + + // Special case (MPQ_2024_v1_300TK2.09p.w3x, file File00010254.blp): + // Extracted less than required. Fill the rest with zeros + if(cbOutSector < dwBytesInThisSector) + { + memset(pbOutSector + cbOutSector, 0, dwBytesInThisSector - cbOutSector); + } } else { |