From edeb26b7a718f0fd6cb18ad78e0d970513559350 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 10 Mar 2007 17:49:21 +0000 Subject: [PATCH] don't Return from macro, use Goto git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4993 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/Memento.nsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Include/Memento.nsh b/Include/Memento.nsh index e0d01c6f..b86de45c 100644 --- a/Include/Memento.nsh +++ b/Include/Memento.nsh @@ -395,7 +395,7 @@ A usage example can be found in `Examples\Memento.nsi`. ${If} ${Errors} # use script defaults on first run - Return + Goto done ${EndIf} @@ -436,7 +436,7 @@ A usage example can be found in `Examples\Memento.nsi`. ${ElseIf} ${Errors} - Goto done + Goto loop_end ${EndIf} @@ -479,7 +479,7 @@ A usage example can be found in `Examples\Memento.nsi`. IntOp $0 $0 + 1 Goto loop - done: + loop_end: # restore sections' status @@ -487,6 +487,8 @@ A usage example can be found in `Examples\Memento.nsi`. # all done + done: + Pop $3 Pop $2 Pop $1