Jeff Smith : kernel32: Quote first command line arg in process paramenters.
Alexandre Julliard
julliard at winehq.org
Mon Apr 20 15:01:51 CDT 2020
Module: wine
Branch: oldstable
Commit: 29e934979ebbefe0523408b9f224da5503809cc6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=29e934979ebbefe0523408b9f224da5503809cc6
Author: Jeff Smith <whydoubt at gmail.com>
Date: Fri Oct 4 23:18:22 2019 -0500
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit ceb32f668360ef51b932fa6350858a6b8d2d26ec)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/kernel32/process.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index f9f18d6e84..709313ceca 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -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;
More information about the wine-cvs
mailing list