Commit c7e87b53 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

start: Force no console creation when using start /exec.

parent 7b65ef3a
...@@ -516,8 +516,11 @@ int __cdecl wmain (int argc, WCHAR *argv[]) ...@@ -516,8 +516,11 @@ int __cdecl wmain (int argc, WCHAR *argv[])
break; break;
} }
else if (is_option(argv[i], L"/exec")) { else if (is_option(argv[i], L"/exec")) {
creation_flags = 0; /* If start.exe isn't attached to a console, force that no console would be created.
sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE | SEE_MASK_FLAG_NO_UI; * This is needed when target process belongs to CUI subsystem.
*/
creation_flags = GetConsoleCP() == 0 ? DETACHED_PROCESS : 0;
sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE | SEE_MASK_FLAG_NO_UI;
i++; i++;
break; break;
} }
......
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