Damjan Jovanovic : start.exe: Launch all binaries through CreateProcess().

Alexandre Julliard julliard at winehq.org
Mon Aug 19 15:35:12 CDT 2019


Module: wine
Branch: master
Commit: 3c7501e8f0f941db012bed16cf7b5943202fe83d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3c7501e8f0f941db012bed16cf7b5943202fe83d

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Sun Aug 11 16:28:45 2019 +0200

start.exe: Launch all binaries through CreateProcess().

This lets us pass them the title, priority classes, and other
options unsupported by ShellExecuteEx().

Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/start/start.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/start/start.c b/programs/start/start.c
index bc5b203..b21a0c5 100644
--- a/programs/start/start.c
+++ b/programs/start/start.c
@@ -393,8 +393,9 @@ int wmain (int argc, WCHAR *argv[])
 		if (!sei.lpDirectory)
 			sei.lpDirectory = parent_directory = get_parent_dir(dos_filename);
 		sei.fMask &= ~SEE_MASK_FLAG_NO_UI;
+	}
 
-                if (GetBinaryTypeW(sei.lpFile, &binary_type)) {
+        if (GetBinaryTypeW(sei.lpFile, &binary_type)) {
                     WCHAR *commandline;
                     STARTUPINFOW startup_info;
                     PROCESS_INFORMATION process_information;
@@ -427,8 +428,7 @@ int wmain (int argc, WCHAR *argv[])
                     }
                     sei.hProcess = process_information.hProcess;
                     goto done;
-                }
-	}
+        }
 
         if (!ShellExecuteExW(&sei))
         {




More information about the wine-cvs mailing list