From ee4a2444ce0fc015ff666f928593e0c5067ca076 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 21 Dec 2007 22:28:04 +0000 Subject: [PATCH] verify correct offset in TOK_GETFULLPATHNAME git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5425 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 bbd4a825..eec37c39 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4872,7 +4872,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ent.offsets[0]=add_string(line.gettoken_str(2+a)); ent.offsets[1]=GetUserVarIndex(line, 1+a); ent.offsets[2]=!a; - if (ent.offsets[0]<0) PRINTHELP() + if (ent.offsets[1]<0) PRINTHELP() SCRIPT_MSG("GetFullPathName: %s->%s (%d)\n", line.gettoken_str(2+a),line.gettoken_str(1+a),a?"sfn":"lfn"); }