From c0d2f78b2a11a6ea663dee0f3773e4197a886213 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 May 2009 10:06:39 +0000 Subject: [PATCH] - fixed: FZipLump passed the uncompressed lump size to ShrinkLoop as size of the input data but this must be the compressed size. SVN r1589 (trunk) --- src/resourcefiles/file_zip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resourcefiles/file_zip.cpp b/src/resourcefiles/file_zip.cpp index 990675dfc..c76bb15f5 100644 --- a/src/resourcefiles/file_zip.cpp +++ b/src/resourcefiles/file_zip.cpp @@ -387,7 +387,7 @@ int FZipLump::FillCache() case METHOD_SHRINK: { - ShrinkLoop((unsigned char *)Cache, LumpSize, Owner->Reader, LumpSize); + ShrinkLoop((unsigned char *)Cache, LumpSize, Owner->Reader, CompressedSize); break; }