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:
anders_k 2015-09-26 14:19:39 +00:00
parent 721090a0f3
commit 6de4fbc743

View file

@ -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;