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
This commit is contained in:
kichik 2004-11-11 20:34:50 +00:00
parent 69a4f35f35
commit 424322a142

View file

@ -912,11 +912,12 @@ static int NSISCALL ExecuteEntry(entry *entry_)
SetErrorMode(SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); SetErrorMode(SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS);
if (SUCCEEDED(g_hres)) if (SUCCEEDED(g_hres))
{ {
HANDLE h; HANDLE h=NULL;
char *buf1=GetStringFromParm(-0x10); char *buf1=GetStringFromParm(-0x10);
char *buf0=GetStringFromParm(0x01); char *buf0=GetStringFromParm(0x01);
h=GetModuleHandle(buf1); if (parm3)
h=GetModuleHandle(buf1);
if (!h) if (!h)
h=LoadLibrary(buf1); h=LoadLibrary(buf1);
if (h) if (h)