mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-18 20:43:18 +00:00
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>
This commit is contained in:
parent
c258b5ef11
commit
ceb32f6683
|
@ -987,7 +987,7 @@ static BOOL build_command_line( WCHAR **argv )
|
||||||
has_space=FALSE;
|
has_space=FALSE;
|
||||||
bcount=0;
|
bcount=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
if( !*a ) has_space=TRUE;
|
if( arg == argv || !*a ) has_space=TRUE;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a=='\\') {
|
if (*a=='\\') {
|
||||||
bcount++;
|
bcount++;
|
||||||
|
@ -1024,7 +1024,7 @@ static BOOL build_command_line( WCHAR **argv )
|
||||||
/* Check for quotes and spaces in this argument */
|
/* Check for quotes and spaces in this argument */
|
||||||
has_space=has_quote=FALSE;
|
has_space=has_quote=FALSE;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
if( !*a ) has_space=TRUE;
|
if( arg == argv || !*a ) has_space=TRUE;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=TRUE;
|
has_space=TRUE;
|
||||||
|
|
Loading…
Reference in a new issue