From 245bc39dc2f7dc4bb7a735780fd46445bf7a0128 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 23 Apr 2005 20:18:54 +0000 Subject: [PATCH] fixed SetCompressor handling git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3993 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index 394836e7..b962167e 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2459,16 +2459,17 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) while (line.gettoken_str(a)[0] == '/') { - if (!strcmpi(line.gettoken_str(1),"/FINAL")) + if (!strcmpi(line.gettoken_str(a),"/FINAL")) { build_compressor_final = true; a++; } - else if (!strcmpi(line.gettoken_str(1),"/SOLID")) + else if (!strcmpi(line.gettoken_str(a),"/SOLID")) { build_compress_whole = true; a++; } + else PRINTHELP(); } if (a != line.getnumtokens() - 1)