mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 09:25:06 +00:00
start: Remove workaround for /exec without console.
Rather use inheritance of SHELL_NO_WINDOW pseudo console in this case. Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0666950b38
commit
603d7f406c
|
@ -516,10 +516,7 @@ 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")) {
|
||||||
/* If start.exe isn't attached to a console, force that no console would be created.
|
creation_flags = 0;
|
||||||
* 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;
|
sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE | SEE_MASK_FLAG_NO_UI;
|
||||||
i++;
|
i++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue