summarylogtreecommitdiffstats
path: root/0009-kernel32-dont-create-console-when-not-cui.patch
diff options
context:
space:
mode:
authormoonshadow5652023-12-27 21:52:06 +0100
committermoonshadow5652023-12-27 21:52:06 +0100
commitdc8ae065bf85b88bf9db5268394e2c5697b32ec6 (patch)
treef1120bfdeb111c28aee99a160ab0e458dd1322cc /0009-kernel32-dont-create-console-when-not-cui.patch
parent6f12e53ef7823ae62a0c8e3f4d12505b23dcf399 (diff)
downloadaur-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.patch20
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;
-+ }
- }