Fix: Decompress ZLIB correctly
This commit fixes an issue where the ZLIB decompression was not being performed correctly after stripping hash blocks. The corrected code ensures that the decompressed data is properly handled.
This commit is contained in:
parent
a3769f0bad
commit
15ff5e65b1
@ -83,7 +83,7 @@ bool FastFile_COD6_360::Load(const QByteArray aData) {
|
||||
if (decompressedData.isEmpty() || decompressedData.size() < 1024)
|
||||
{
|
||||
QByteArray stripped = Compression::StripHashBlocks(compressed);
|
||||
QByteArray retry = Compression::DecompressZLIB(stripped);
|
||||
QByteArray retry = Compression::DecompressZLIB(stripped);
|
||||
if (!retry.isEmpty())
|
||||
decompressedData.swap(retry);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user