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@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Damjan Jovanovic 2019-08-11 16:28:45 +02:00 committed by Alexandre Julliard
parent f2fa7ec3c5
commit 3c7501e8f0
1 changed files with 3 additions and 3 deletions

View File

@ -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))
{