Added IntPtrOp alias

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6929 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2017-10-13 21:23:33 +00:00
parent 97898cc03b
commit 34e9873d5f
10 changed files with 59 additions and 24 deletions

View file

@ -1,6 +1,5 @@
!include nsDialogs.nsh
!include LogicLib.nsh
!include Util.nsh ; IntPtrOp
!include WinCore.nsh ; MAKELONG
Name "nsDialogs Example"
@ -196,7 +195,7 @@ Function OnNotify
IntOp $2 $5 - $4
System::Call '*(ir4,ir5,l,&t$2,i)p.r2' ; Create TEXTRANGE and a text buffer
${If} $2 P<> 0
${IntPtrOp} $3 $2 + 16 ; Find buffer
IntPtrOp $3 $2 + 16 ; Find buffer
System::Call '*$2(i,i,p$3)' ; Set buffer in TEXTRANGE
SendMessage $1 ${EM_GETTEXTRANGE} "" $2 $4
${If} $4 <> 0