Commit ceb32f66 authored by Jeff Smith's avatar Jeff Smith Committed by Alexandre Julliard

kernel32: Quote first command line arg in process paramenters.

parent c258b5ef
......@@ -987,7 +987,7 @@ static BOOL build_command_line( WCHAR **argv )
has_space=FALSE;
bcount=0;
a=*arg;
if( !*a ) has_space=TRUE;
if( arg == argv || !*a ) has_space=TRUE;
while (*a!='\0') {
if (*a=='\\') {
bcount++;
......@@ -1024,7 +1024,7 @@ static BOOL build_command_line( WCHAR **argv )
/* Check for quotes and spaces in this argument */
has_space=has_quote=FALSE;
a=*arg;
if( !*a ) has_space=TRUE;
if( arg == argv || !*a ) has_space=TRUE;
while (*a!='\0') {
if (*a==' ' || *a=='\t') {
has_space=TRUE;
......
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