From 6361cfb1f6f989e74999cc8fbf521ccd6a3e38a9 Mon Sep 17 00:00:00 2001 From: anders_k Date: Mon, 27 Jul 2015 18:33:39 +0000 Subject: [PATCH] Minor x64 system plugin example fixes git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6590 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/System/System.html | 2 +- Include/Win/COM.nsh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Contrib/System/System.html b/Contrib/System/System.html index f7f75c64..f910b7c8 100644 --- a/Contrib/System/System.html +++ b/Contrib/System/System.html @@ -755,7 +755,7 @@ System::Call "*$0(i 5, i 2, i 513, t 'test')"
 # assuming the struct's memory address is kept in $0
-System::Call "dll::func(i r0)"
+System::Call "dll::func(p r0)"
 
diff --git a/Include/Win/COM.nsh b/Include/Win/COM.nsh index a0e86408..649ea987 100644 --- a/Include/Win/COM.nsh +++ b/Include/Win/COM.nsh @@ -6,6 +6,7 @@ COM defines and helper macros ; Example usage: +!include LogicLib.nsh !include Win\COM.nsh !include Win\Propkey.nsh !insertmacro ComHlpr_CreateInProcInstance ${CLSID_ShellLink} ${IID_IShellLink} r0 "" @@ -15,7 +16,7 @@ ${If} $0 <> 0 ${If} $1 = 0 ${AndIf} $2 = 0 ${IUnknown::QueryInterface} $0 '("${IID_IPropertyStore}",.r1)' - ${If} $1 <> 0 + ${If} $1 P<> 0 System::Call '*${SYSSTRUCT_PROPERTYKEY}(${PKEY_AppUserModel_StartPinOption})p.r2' System::Call '*${SYSSTRUCT_PROPVARIANT}(${VT_UI4},,&i4 ${APPUSERMODEL_STARTPINOPTION_NOPINONINSTALL})p.r3' ${IPropertyStore::SetValue} $1 '($2,$3)' @@ -31,7 +32,7 @@ ${If} $0 <> 0 ${IUnknown::Release} $1 "" ${EndIf} ${IUnknown::QueryInterface} $0 '("${IID_IPersistFile}",.r1)' - ${If} $1 <> 0 + ${If} $1 P<> 0 ${IPersistFile::Save} $1 '("$SMPrograms\nsis_test.lnk",1)' ${IUnknown::Release} $1 "" ${EndIf}