diff options
author | moonshadow565 | 2023-12-27 21:52:06 +0100 |
---|---|---|
committer | moonshadow565 | 2023-12-27 21:52:06 +0100 |
commit | dc8ae065bf85b88bf9db5268394e2c5697b32ec6 (patch) | |
tree | f1120bfdeb111c28aee99a160ab0e458dd1322cc /0009-kernel32-dont-create-console-when-not-cui.patch | |
parent | 6f12e53ef7823ae62a0c8e3f4d12505b23dcf399 (diff) | |
download | aur-wine-lol-staging.tar.gz |
Remove 0009-kernel32-dont-create-console-when-not-cui.patch.
This patch was causing some issues on program exit and was only ever
really usefull for playing replays manually with wine.
With 0005-ntdll-Always-start-the-initial-process-through-start.patch in
staging this is no longer necessary and can be removed.
Diffstat (limited to '0009-kernel32-dont-create-console-when-not-cui.patch')
-rw-r--r-- | 0009-kernel32-dont-create-console-when-not-cui.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/0009-kernel32-dont-create-console-when-not-cui.patch b/0009-kernel32-dont-create-console-when-not-cui.patch deleted file mode 100644 index e034e84c5bd8..000000000000 --- a/0009-kernel32-dont-create-console-when-not-cui.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/dlls/kernelbase/console.c b/dlls/kernelbase/console.c -index fa143857bc2..aa37d92ef70 100644 ---- a/dlls/kernelbase/console.c -+++ b/dlls/kernelbase/console.c -@@ -2342,6 +2342,13 @@ void init_console( void ) - if (RtlImageNtHeader( mod )->OptionalHeader.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI) - alloc_console( no_window ); - } -- else if (params->ConsoleHandle && params->ConsoleHandle != CONSOLE_HANDLE_SHELL_NO_WINDOW) -- create_console_connection( params->ConsoleHandle ); -+ else if (params->ConsoleHandle) -+ { -+ HMODULE mod = GetModuleHandleW( NULL ); -+ if (params->ConsoleHandle != CONSOLE_HANDLE_SHELL_NO_WINDOW && -+ RtlImageNtHeader( mod )->OptionalHeader.Subsystem == IMAGE_SUBSYSTEM_WINDOWS_CUI) -+ create_console_connection( params->ConsoleHandle ); -+ else -+ params->ConsoleHandle = NULL; -+ } - } |