EnumRegKey/Value output_var check fixed

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2223 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-03-01 12:44:33 +00:00
parent 90b11cdccc
commit 8d60e504f3

View file

@ -3485,7 +3485,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
ent.offsets[0]=line.gettoken_enum(1,usrvars);
int k=line.gettoken_enum(2,rootkeys[0]);
if (k == -1) k=line.gettoken_enum(2,rootkeys[1]);
if (!ent.offsets[0] || k == -1) PRINTHELP()
if (ent.offsets[0] == -1 || k == -1) PRINTHELP()
ent.offsets[1]=(int)rootkey_tab[k];
ent.offsets[2]=add_string(line.gettoken_str(3));
ent.offsets[3]=add_string(line.gettoken_str(4));