ignored invalid preprocessor commands in ignored blocks

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4909 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-01-27 15:54:28 +00:00
parent 60c3a6165e
commit 910ed492ab
4 changed files with 12 additions and 1 deletions

View file

@ -305,7 +305,7 @@ int CEXEBuild::doParse(const char *str)
{
bool ignore_line = cur_ifblock && (cur_ifblock->ignore || cur_ifblock->inherited_ignore);
char first_char = *(char *) m_linebuild.get();
if (ignore_line && first_char!='!')
if (ignore_line && (first_char!='!' || !is_valid_token(line.gettoken_str(0))))
{
m_linebuild.resize(0);
return PS_OK;