forked from Mirrors/wine-wine
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
parent
c3a9c35499
commit
29e934979e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue