Eric Pouech : start: Remove workaround for /exec without console.
Alexandre Julliard
julliard at winehq.org
Wed Apr 13 15:14:46 CDT 2022
Module: wine
Branch: master
Commit: 603d7f406c032527e761c3ff2a7252e8b120328a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=603d7f406c032527e761c3ff2a7252e8b120328a
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Apr 13 11:51:11 2022 +0200
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 at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/start/start.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/programs/start/start.c b/programs/start/start.c
index 7252d54e046..835128ebf28 100644
--- a/programs/start/start.c
+++ b/programs/start/start.c
@@ -516,10 +516,7 @@ int __cdecl wmain (int argc, WCHAR *argv[])
break;
}
else if (is_option(argv[i], L"/exec")) {
- /* If start.exe isn't attached to a console, force that no console would be created.
- * This is needed when target process belongs to CUI subsystem.
- */
- creation_flags = GetConsoleCP() == 0 ? DETACHED_PROCESS : 0;
+ creation_flags = 0;
sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE | SEE_MASK_FLAG_NO_UI;
i++;
break;
More information about the wine-cvs
mailing list