From 15ff5e65b1aa0ed924438ec6d612b3fe01df0f0f Mon Sep 17 00:00:00 2001 From: njohnson Date: Wed, 10 Sep 2025 21:55:16 -0400 Subject: [PATCH] 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. --- libs/fastfile/360/fastfile_cod6_360.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fastfile/360/fastfile_cod6_360.cpp b/libs/fastfile/360/fastfile_cod6_360.cpp index a22896d..e478731 100644 --- a/libs/fastfile/360/fastfile_cod6_360.cpp +++ b/libs/fastfile/360/fastfile_cod6_360.cpp @@ -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); }