Macros don't crash makensis if they have bad syntax

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1114 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-21 15:47:18 +00:00
parent fc2c45cb92
commit 6cde9f63d5

View file

@ -425,9 +425,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
if (p > str) p--;
while (p >= str && (*p == '\r' || *p == '\n' || *p == ' ' || *p == '\t')) p--;
*++p=0;
LineParser l2;
l2.parse(str);
if (!stricmp(l2.gettoken_str(0),"!macroend")) break;
if (!strnicmp(str,"!macroend",sizeof("!macroend"))) break;
if (str[0]) m_macros.add(str,strlen(str)+1);
else m_macros.add(" ",2);
}