From 14a9b130a1ea420616a5b401f585de2b068de285 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 6 Aug 2005 16:12:35 +0000 Subject: [PATCH] use Var /GLOBAL to avoid annoying warning git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4212 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/Library.nsh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Include/Library.nsh b/Include/Library.nsh index 83d453cc..403ea7a0 100644 --- a/Include/Library.nsh +++ b/Include/Library.nsh @@ -28,11 +28,17 @@ !define SHCNF_IDLIST 0x0000 !endif -Var __INSTALLLLIB_SESSIONGUID - ### Initialize session id (GUID) !macro __InstallLib_Helper_InitSession + !ifndef __InstallLib_SessionGUID_Defined + + !define __InstallLib_SessionGUID_Defined + + Var /GLOBAL __INSTALLLLIB_SESSIONGUID + + !endif + StrCmp $__INSTALLLLIB_SESSIONGUID '' 0 +6 System::Alloc 16