Commit 3c7501e8 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

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: 's avatarDamjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f2fa7ec3
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment