!macroend was only being recognised at the beginning of a line

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1287 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2002-10-02 22:45:51 +00:00
parent 806e0bc3da
commit 97c3fb52bf

View file

@ -425,7 +425,8 @@ 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;
if (!strnicmp(str,"!macroend",sizeof("!macroend"))) break;
LineParser l2;
if (!l2.parse(str) && !stricmp(l2.gettoken_str(0),"!macroend")) break;
if (str[0]) m_macros.add(str,strlen(str)+1);
else m_macros.add(" ",2);
}