From b5a55b00731e52f6d7613755bfdbdaa1a3b9f6d0 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 6 Jun 2009 13:47:59 +0000 Subject: [PATCH] fixed bug #2801024 - CreateFont doesn't make sure the first parameter is a valid variable git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5969 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/script.cpp b/Source/script.cpp index db3b21f3..93076a9a 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4316,6 +4316,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) case TOK_CREATEFONT: ent.which=EW_CREATEFONT; ent.offsets[0]=GetUserVarIndex(line, 1); + if (ent.offsets[0] < 0) PRINTHELP() ent.offsets[1]=add_string(line.gettoken_str(2)); SCRIPT_MSG("CreateFont: output=%s \"%s\"",line.gettoken_str(1),line.gettoken_str(2)); {