From 424322a142727a52958482d24737e3ecb5134907 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 11 Nov 2004 20:34:50 +0000 Subject: [PATCH] Always increase the load count of registered dlls if /NOUNLOAD is not specified. This should fix some problems with registering many COM dlls in a row. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3762 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index f0d6998c..a1d6d8a5 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -912,11 +912,12 @@ static int NSISCALL ExecuteEntry(entry *entry_) SetErrorMode(SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); if (SUCCEEDED(g_hres)) { - HANDLE h; + HANDLE h=NULL; char *buf1=GetStringFromParm(-0x10); char *buf0=GetStringFromParm(0x01); - h=GetModuleHandle(buf1); + if (parm3) + h=GetModuleHandle(buf1); if (!h) h=LoadLibrary(buf1); if (h)