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:
parent
c89ce5942e
commit
87602b35ec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue