From 196f57884c6d545e203cfa129f002b003c25f588 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 10 May 2005 19:15:22 +0000 Subject: [PATCH] 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 --- Source/script.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index b962167e..cc7fa642 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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()