[PATCH v3 5/5] dlls/ntdll: allocate a console for initial CUI process when not attached to a Unix console
Eric Pouech
eric.pouech at gmail.com
Thu Feb 17 03:10:30 CST 2022
suggested by Jacek Caban
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/ntdll/unix/env.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index c7e0674e083..a69d0f26e87 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -1657,6 +1657,8 @@ static void get_initial_console( RTL_USER_PROCESS_PARAMETERS *params )
wine_server_fd_to_handle( 1, GENERIC_WRITE|SYNCHRONIZE, OBJ_INHERIT, ¶ms->hStdOutput );
wine_server_fd_to_handle( 2, GENERIC_WRITE|SYNCHRONIZE, OBJ_INHERIT, ¶ms->hStdError );
+ params->ConsoleHandle = CONSOLE_HANDLE_ALLOC;
+
/* mark tty handles for kernelbase, see init_console */
if (params->hStdInput && isatty(0))
{
More information about the wine-devel
mailing list