stop search for function body at the end of the string

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4422 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-11-24 19:51:24 +00:00
parent d0aa60ffcc
commit b401625783

View file

@ -245,7 +245,9 @@ void PlaceFunction(char *&vb, char *&sp, ParseInfo *pi, int redefine)
}
// find nearest round bracket - function body
while (*sp != '(') sp++;
while (*sp != '(' && *sp) sp++;
if (!*sp)
return;
sp++;
// now we are ready to parse function body