Null parameters need to be quoted on the commandline.

This commit is contained in:
Mike McCormack 2003-07-09 02:50:15 +00:00 committed by Alexandre Julliard
parent fc86392af8
commit 99c67eefcd
3 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;