Commit 99c67eef authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Null parameters need to be quoted on the commandline.

parent fc86392a
......@@ -538,6 +538,7 @@ BOOL build_command_line( char **argv )
has_space=0;
bcount=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a=='\\') {
bcount++;
......@@ -573,6 +574,7 @@ BOOL build_command_line( char **argv )
/* Check for quotes and spaces in this argument */
has_space=has_quote=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a==' ' || *a=='\t') {
has_space=1;
......
......@@ -97,6 +97,7 @@ int main (int argc, char *argv[])
has_space=0;
bcount=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a=='\\') {
bcount++;
......@@ -131,6 +132,7 @@ int main (int argc, char *argv[])
/* Check for quotes and spaces in this argument */
has_space=has_quote=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a==' ' || *a=='\t') {
has_space=1;
......
......@@ -48,6 +48,7 @@ static char *build_command_line( char **argv )
has_space=0;
bcount=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a=='\\') {
bcount++;
......@@ -82,6 +83,7 @@ static char *build_command_line( char **argv )
/* Check for quotes and spaces in this argument */
has_space=has_quote=0;
a=*arg;
if( !*a ) has_space=1;
while (*a!='\0') {
if (*a==' ' || *a=='\t') {
has_space=1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment