From 6de4fbc74311d5394dd001f40b84aa6422b76ef0 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sat, 26 Sep 2015 14:19:39 +0000 Subject: [PATCH] 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 --- Source/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index 5533c43e..d5463134 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -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;