From 2bf93b99dcdf9d368632f1b53b0c7ff899cbdfd4 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 3 Jun 2005 18:45:51 +0000 Subject: [PATCH] bail on output name that starts with a quote git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4063 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/script.cpp b/Source/script.cpp index 598cba77..0e25f444 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4048,6 +4048,12 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) a++; if (!*on||line.getnumtokens()!=a+1||strstr(on,"*") || strstr(on,"?")) PRINTHELP() + if (on[0]=='"') + { + ERROR_MSG("%sFile: output name must not begin with a quote, use \"/oname=name with spaces\".\n",(which_token == TOK_FILE)?"":"Reserve",line.gettoken_str(a)); + PRINTHELP(); + } + int tf=0; #ifdef _WIN32 int v=do_add_file(line.gettoken_str(a), attrib, 0, &tf, on);