From f3b34153bced07698512e8dbeed7406c0c3a3301 Mon Sep 17 00:00:00 2001 From: anders_k Date: Mon, 3 May 2021 21:56:02 +0000 Subject: [PATCH] Use the correct "Un" mode even if it is unused git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7265 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/StrFunc.nsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Include/StrFunc.nsh b/Include/StrFunc.nsh index e4a09262..b995b639 100644 --- a/Include/StrFunc.nsh +++ b/Include/StrFunc.nsh @@ -92,8 +92,8 @@ o-----------------------------------------------------------------------------o !define `${Name}_List` `${List}` !define `${Name}_TypeList` `${TypeList}` !ifdef STRFUNC_USECALLARTIFICIALFUNCTION - !define `${Name}` `!insertmacro STRFUNC_CALL_${Name} "${un}" ` - !define `Un${Name}` `!insertmacro STRFUNC_CALL_${Name} "${un}" ` + !define `${Name}` `!insertmacro STRFUNC_CALL_${Name} "" ` + !define `Un${Name}` `!insertmacro STRFUNC_CALL_${Name} Un ` !else !define `${Name}` `!insertmacro STRFUNC_MAKEFUNC ${Name} "" #` !define `Un${Name}` `!insertmacro STRFUNC_MAKEFUNC ${Name} Un #` @@ -111,7 +111,7 @@ o-----------------------------------------------------------------------------o !verbose push ${_STRFUNC_CREDITVERBOSITY} !echo `${U+24}{${un}${basename}} - Copyright ${credits}` !verbose pop - !define ${un}${basename}_INCLUDED + !define /IfNDef ${un}${basename}_INCLUDED !ifndef STRFUNC_USECALLARTIFICIALFUNCTION !define /ReDef ${un}${basename} `!insertmacro STRFUNC_CALL_${basename} "${un}" ` !if "${un}" != ""