Don't allow empty path in !AddPluginDir
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6617 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
721090a0f3
commit
6de4fbc743
1 changed files with 2 additions and 2 deletions
|
@ -6114,7 +6114,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
return PS_ERROR;
|
||||
}
|
||||
}
|
||||
if (1 == numtok)
|
||||
if (1 == numtok && *path)
|
||||
{
|
||||
const TCHAR *fmtstr = _T("%") NPRIs _T(": \"%") NPRIs _T("\"%") NPRIs _T("%") NPRIs _T("%") NPRIs _T("\n");
|
||||
SCRIPT_MSG(fmtstr, cmdnam, path, arcstr ? _T(" (") : _T(""), arcstr ? arcstr : _T(""), arcstr ? _T(")") : _T(""));
|
||||
|
@ -6123,7 +6123,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
return PS_OK;
|
||||
}
|
||||
}
|
||||
return PS_ERROR;
|
||||
PRINTHELP();
|
||||
case TOK__PLUGINCOMMAND:
|
||||
{
|
||||
int ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue