From 87602b35ec149c19529fee7fe29898c896344f47 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 5 Sep 2003 14:14:29 +0000 Subject: [PATCH] Only check for open if[n]def if the compilation was successful git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2839 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 b7dc62f9..83f86db6 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -193,7 +193,7 @@ int CEXEBuild::process_script(FILE *filepointer, char *filename) return PS_ERROR; } - if (num_ifblock()) + if (ret == PS_EOF && num_ifblock()) { ERROR_MSG("!if[n]def: open at EOF - need !endif\n"); return PS_ERROR;