From 9d8874cd72f2fe083f7fab6965bf5d2bcf77f9ba Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 6 Jul 2007 09:31:57 +0000 Subject: [PATCH] the more common case for SendMessage is ints, so get that first git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5190 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 7b8ee7db..b1977f99 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -742,10 +742,10 @@ static int NSISCALL ExecuteEntry(entry *entry_) case EW_SENDMESSAGE: { int v; - int b3=(int)GetStringFromParm(0x33); - int b4=(int)GetStringFromParm(0x44); - if (!(parm5&1)) b3=myatoi((char*)b3); - if (!(parm5&2)) b4=myatoi((char*)b4); + int b3=GetIntFromParm(3); + int b4=GetIntFromParm(4); + if (parm5&1) b3=(int)GetStringFromParm(0x33); + if (parm5&2) b4=(int)GetStringFromParm(0x44); if (which == EW_SENDMESSAGE) {