From 6a5694d64a40e4bfea2cd7d1624698757557a22a Mon Sep 17 00:00:00 2001 From: justin1014 Date: Tue, 1 Oct 2002 06:30:38 +0000 Subject: [PATCH] made bzip2 mode slightly smaller by making reinit stuff not necessary git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1245 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/fileform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/exehead/fileform.c b/Source/exehead/fileform.c index bd5ee35a..3c29c97f 100644 --- a/Source/exehead/fileform.c +++ b/Source/exehead/fileform.c @@ -11,12 +11,12 @@ #ifdef NSIS_COMPRESS_USE_BZIP2 #include "../bzip2/bzlib.h" -static char bz2_needreinit; #define z_stream DState -#define inflateInit(x) { if (BZ2_bzDecompressInit(x)<0) return _LANG_INVALIDCRC; } +#define inflateInit(x) BZ2_bzDecompressInit(x) +#define inflateReset(x) BZ2_bzDecompressInit(x) + #define inflate(x) BZ2_bzDecompress(x) -#define inflateReset(x) { if (bz2_needreinit) { inflateInit(x); } else bz2_needreinit++; } #define Z_OK BZ_OK #define Z_STREAM_END BZ_STREAM_END #endif//NSIS_COMPRESS_USE_BZIP2