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
This commit is contained in:
kichik 2003-09-05 14:14:29 +00:00
parent c89ce5942e
commit 87602b35ec

View file

@ -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;