From 411a2d5c58890eb440d3efbb14be5224bc64626e Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 28 Mar 2006 17:02:23 +0000 Subject: [PATCH] fixed bug #1459789 - Incorrect FileOpen input validation git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4621 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 c11d0ae6..736378f1 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5256,7 +5256,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ent.offsets[2]=OPEN_ALWAYS; } - if (ent.offsets[3] < 0 || !ent.offsets[1]) PRINTHELP() + if (ent.offsets[0] < 0 || !ent.offsets[1]) PRINTHELP() } SCRIPT_MSG("FileOpen: %s as %s -> %s\n",line.gettoken_str(2),line.gettoken_str(3),line.gettoken_str(1)); return add_entry(&ent);