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
This commit is contained in:
parent
8ba9af27fd
commit
2bf93b99dc
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue