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
This commit is contained in:
kichik 2007-12-21 22:25:36 +00:00
parent 0f9d87a2c4
commit 8decf5cd9f

View file

@ -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