kernel32: Quote first command line arg in process paramenters.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47790
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit ceb32f6683)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Jeff Smith 2019-10-04 23:18:22 -05:00 committed by Michael Stefaniuc
parent c3a9c35499
commit 29e934979e
1 changed files with 2 additions and 2 deletions

View File

@ -953,7 +953,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++;
@ -990,7 +990,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;