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:
parent
fc2c45cb92
commit
6cde9f63d5
1 changed files with 1 additions and 3 deletions
|
@ -425,9 +425,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
if (p > str) p--;
|
if (p > str) p--;
|
||||||
while (p >= str && (*p == '\r' || *p == '\n' || *p == ' ' || *p == '\t')) p--;
|
while (p >= str && (*p == '\r' || *p == '\n' || *p == ' ' || *p == '\t')) p--;
|
||||||
*++p=0;
|
*++p=0;
|
||||||
LineParser l2;
|
if (!strnicmp(str,"!macroend",sizeof("!macroend"))) break;
|
||||||
l2.parse(str);
|
|
||||||
if (!stricmp(l2.gettoken_str(0),"!macroend")) break;
|
|
||||||
if (str[0]) m_macros.add(str,strlen(str)+1);
|
if (str[0]) m_macros.add(str,strlen(str)+1);
|
||||||
else m_macros.add(" ",2);
|
else m_macros.add(" ",2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue