CallInstDLL without /NOUNLOAD now works

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@833 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-08-29 16:44:24 +00:00
parent 0d82e85746
commit e8825c3dab

View file

@ -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()