From 415e0c6372b11a8ce189efdf9419c180b44f8ccf Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Sat, 13 Jan 2018 21:29:16 +0900 Subject: [PATCH] win32: Don't use $0 Fix wrong usage of $0 after 8.0.1232. $0 is reserved for the install directory. --- nsis/gvim.nsi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nsis/gvim.nsi b/nsis/gvim.nsi index 83ef4e706180a..a1820f449f993 100644 --- a/nsis/gvim.nsi +++ b/nsis/gvim.nsi @@ -480,14 +480,12 @@ Function SetCustom # Display the InstallOptions dialog # Check if a _vimrc should be created - SectionGetFlags ${sec_vimrc_id} $0 - IntOp $0 $0 & 1 - StrCmp $0 "1" +2 0 + SectionGetFlags ${sec_vimrc_id} $3 + IntOp $3 $3 & 1 + StrCmp $3 "1" +2 0 Abort - Push $3 - InstallOptions::dialog "$PLUGINSDIR\vimrc.ini" - Pop $3 + InstallOptions::dialog "$PLUGINSDIR\vimrc.ini" Pop $3 FunctionEnd