Warning about misused /NOUNLOAD
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1619 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
945a30a7bb
commit
6678a998ff
1 changed files with 4 additions and 0 deletions
|
@ -3771,16 +3771,20 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
|
||||||
// First push dll args
|
// First push dll args
|
||||||
|
|
||||||
int parmst=i; // we push em in reverse order
|
int parmst=i; // we push em in reverse order
|
||||||
|
int nounloadmisused=0;
|
||||||
for (; i < line.getnumtokens(); i++) {
|
for (; i < line.getnumtokens(); i++) {
|
||||||
int w=parmst + (line.getnumtokens()-i - 1);
|
int w=parmst + (line.getnumtokens()-i - 1);
|
||||||
ent.which=EW_PUSHPOP;
|
ent.which=EW_PUSHPOP;
|
||||||
ent.offsets[0]=add_string(line.gettoken_str(w));
|
ent.offsets[0]=add_string(line.gettoken_str(w));
|
||||||
|
if (!lstrcmpi(line.gettoken_str(w), "/NOUNLOAD")) nounloadmisused=1;
|
||||||
ent.offsets[1]=0;
|
ent.offsets[1]=0;
|
||||||
ret=add_entry(&ent);
|
ret=add_entry(&ent);
|
||||||
if (ret != PS_OK) return ret;
|
if (ret != PS_OK) return ret;
|
||||||
SCRIPT_MSG(" %s",line.gettoken_str(i));
|
SCRIPT_MSG(" %s",line.gettoken_str(i));
|
||||||
}
|
}
|
||||||
SCRIPT_MSG("\n");
|
SCRIPT_MSG("\n");
|
||||||
|
if (nounloadmisused)
|
||||||
|
warning("/NOUNLOAD must come first before any plugin parameter. Unless the plugin you are trying to use has a parameter /NOUNLOAD, you are doing something wrong.");
|
||||||
|
|
||||||
// next, call it
|
// next, call it
|
||||||
ent.which=EW_REGISTERDLL;
|
ent.which=EW_REGISTERDLL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue