From 8decf5cd9f7472e21b6e6c408ee520bf82b5df69 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 21 Dec 2007 22:25:36 +0000 Subject: [PATCH] verify correct offset in TOK_GETCURINSTTYPE git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5424 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index 5061fb8d..bbd4a825 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5492,7 +5492,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ent.offsets[1]=GetUserVarIndex(line,1); ent.offsets[2]=0; ent.offsets[3]=1; - if (line.gettoken_str(1)[0] && ent.offsets[0]<0) PRINTHELP() + if (line.gettoken_str(1)[0] && ent.offsets[1]<0) PRINTHELP() SCRIPT_MSG("GetCurInstType: %s\n",line.gettoken_str(1)); return add_entry(&ent); #else//!NSIS_CONFIG_COMPONENTPAGE