Display a "plugin not found" error message when a invalid command looks like a plugin call.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6541 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5ae69eb9cc
commit
d42a4f16a6
5 changed files with 34 additions and 15 deletions
|
@ -360,7 +360,7 @@ bool CEXEBuild::is_unsafe_pp_token(int tkid)
|
|||
return false;
|
||||
}
|
||||
|
||||
int CEXEBuild::get_commandtoken(TCHAR *s, int *np, int *op, int *pos)
|
||||
int CEXEBuild::get_commandtoken(const TCHAR *s, int *np, int *op, int *pos)
|
||||
{
|
||||
for (int x = 0; x < TOK__LAST; x ++)
|
||||
if (!_tcsicmp(tokenlist[x].name,s))
|
||||
|
@ -384,7 +384,7 @@ int CEXEBuild::GetCurrentTokenPlace()
|
|||
return TP_GLOBAL;
|
||||
}
|
||||
|
||||
int CEXEBuild::IsTokenPlacedRight(int pos, TCHAR *tok)
|
||||
int CEXEBuild::IsTokenPlacedRight(int pos, const TCHAR *tok)
|
||||
{
|
||||
if (preprocessonly)
|
||||
return PS_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue