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
This commit is contained in:
parent
7c08c07d9f
commit
edeb26b7a7
1 changed files with 5 additions and 3 deletions
|
@ -395,7 +395,7 @@ A usage example can be found in `Examples\Memento.nsi`.
|
||||||
${If} ${Errors}
|
${If} ${Errors}
|
||||||
|
|
||||||
# use script defaults on first run
|
# use script defaults on first run
|
||||||
Return
|
Goto done
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ A usage example can be found in `Examples\Memento.nsi`.
|
||||||
|
|
||||||
${ElseIf} ${Errors}
|
${ElseIf} ${Errors}
|
||||||
|
|
||||||
Goto done
|
Goto loop_end
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
@ -479,7 +479,7 @@ A usage example can be found in `Examples\Memento.nsi`.
|
||||||
IntOp $0 $0 + 1
|
IntOp $0 $0 + 1
|
||||||
|
|
||||||
Goto loop
|
Goto loop
|
||||||
done:
|
loop_end:
|
||||||
|
|
||||||
# restore sections' status
|
# restore sections' status
|
||||||
|
|
||||||
|
@ -487,6 +487,8 @@ A usage example can be found in `Examples\Memento.nsi`.
|
||||||
|
|
||||||
# all done
|
# all done
|
||||||
|
|
||||||
|
done:
|
||||||
|
|
||||||
Pop $3
|
Pop $3
|
||||||
Pop $2
|
Pop $2
|
||||||
Pop $1
|
Pop $1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue