From e8825c3dab7224b270d02c173a9e780f0a858ed3 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 29 Aug 2002 16:44:24 +0000 Subject: [PATCH] CallInstDLL without /NOUNLOAD now works git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@833 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/script.cpp b/Source/script.cpp index c99ac9fa..1bcc55e4 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2029,8 +2029,10 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char else if (which_token == TOK_CALLINSTDLL) { int a = 2; - if (!stricmp(line.gettoken_str(a++), "/NOUNLOAD")) + if (!stricmp(line.gettoken_str(a), "/NOUNLOAD")) { ent.offsets[3]=1; + a++; + } if (a+1 != line.getnumtokens()) PRINTHELP(); ent.offsets[1]=add_string(line.gettoken_str(a)); if (ent.offsets[1]<0) PRINTHELP()