[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsis-commits
Subject:    [NSIS-commits] SF.net SVN: nsis:[6617] NSIS/trunk/Source/script.cpp
From:       anders_k () users ! sourceforge ! net
Date:       2015-09-26 14:19:39
Message-ID: E1ZfqKE-0005zF-Sb () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 6617
          http://sourceforge.net/p/nsis/code/6617
Author:   anders_k
Date:     2015-09-26 14:19:39 +0000 (Sat, 26 Sep 2015)
Log Message:
-----------
Don't allow empty path in !AddPluginDir

Modified Paths:
--------------
    NSIS/trunk/Source/script.cpp

Modified: NSIS/trunk/Source/script.cpp
===================================================================
--- NSIS/trunk/Source/script.cpp	2015-09-24 20:47:47 UTC (rev 6616)
+++ NSIS/trunk/Source/script.cpp	2015-09-26 14:19:39 UTC (rev 6617)
@@ -6114,7 +6114,7 @@
           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 @@
         return PS_OK;
       }
     }
-    return PS_ERROR;
+    PRINTHELP();
     case TOK__PLUGINCOMMAND:
     {
       int ret;

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
NSIS-commits mailing list
NSIS-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nsis-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic