From e52562fd7048820797ac22de3c5318daf47ea45d Mon Sep 17 00:00:00 2001 From: justin1014 Date: Sun, 22 Sep 2002 18:48:58 +0000 Subject: [PATCH] fixed no-compression but uninstaller mode git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1151 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/build.cpp b/Source/build.cpp index 50382e3c..68b9f8a2 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -1709,6 +1709,7 @@ int CEXEBuild::uninstall_generate() GrowBuf udata; +#ifdef NSIS_CONFIG_COMPRESSION_SUPPORT if (build_compress_whole) { // compress uninstaller too udata.add(&fh,sizeof(fh)); @@ -1748,7 +1749,9 @@ int CEXEBuild::uninstall_generate() firstheader *_fh=(firstheader *)udata.get(); _fh->length_of_all_following_data=udata.getlen()+(build_crcchk?sizeof(int):0); } - else { + else +#endif//NSIS_CONFIG_COMPRESSION_SUPPORT + { udata.add(&fh,sizeof(fh)); udata.add(uhd.get(),uhd.getlen()); udata.add(ubuild_datablock.get(),ubuild_datablock.getlen());