Call :label is valid in uninstall sections too

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4018 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-05-10 19:15:22 +00:00
parent 65a282745d
commit 196f57884c

View file

@ -3321,7 +3321,8 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
case TOK_CALL:
if (!line.gettoken_str(1)[0] || (line.gettoken_str(1)[0]==':' && !line.gettoken_str(1)[1] )) PRINTHELP()
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
if (uninstall_mode && strnicmp(line.gettoken_str(1),"un.",3) && (GetUserVarIndex(line,1) < 0))
if (uninstall_mode && strnicmp(line.gettoken_str(1),"un.",3)
&& (GetUserVarIndex(line,1) < 0) && line.gettoken_str(1)[0]!=':')
{
ERROR_MSG("Call must be used with function names starting with \"un.\" in the uninstall section.\n");
PRINTHELP()