mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
Added patch to start debugger always on WinSta0.
This commit is contained in:
parent
5f4b99aa18
commit
7b4727f89c
@ -0,0 +1,24 @@
|
||||
From efdcaba02d66b65177ce73686f4d4b5fb8f6e4f8 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Fri, 13 Jan 2017 01:59:13 +0100
|
||||
Subject: kernel32: Always start debugger on WinSta0.
|
||||
|
||||
---
|
||||
dlls/kernel32/except.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/dlls/kernel32/except.c b/dlls/kernel32/except.c
|
||||
index 1a1521a8038..cbc880f9a44 100644
|
||||
--- a/dlls/kernel32/except.c
|
||||
+++ b/dlls/kernel32/except.c
|
||||
@@ -314,6 +314,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
|
||||
TRACE("Starting debugger %s\n", debugstr_a(cmdline));
|
||||
memset(&startup, 0, sizeof(startup));
|
||||
startup.cb = sizeof(startup);
|
||||
+ startup.lpDesktop = (char *)"WinSta0";
|
||||
startup.dwFlags = STARTF_USESHOWWINDOW;
|
||||
startup.wShowWindow = SW_SHOWNORMAL;
|
||||
ret = CreateProcessA(NULL, cmdline, NULL, NULL, TRUE, 0, env, NULL, &startup, &info);
|
||||
--
|
||||
2.11.0
|
||||
|
@ -174,6 +174,7 @@ patch_enable_all ()
|
||||
enable_kernel32_COMSPEC="$1"
|
||||
enable_kernel32_CopyFileEx="$1"
|
||||
enable_kernel32_Cwd_Startup_Info="$1"
|
||||
enable_kernel32_Debugger="$1"
|
||||
enable_kernel32_FindFirstFile="$1"
|
||||
enable_kernel32_GetCurrentPackageFamilyName="$1"
|
||||
enable_kernel32_GetShortPathName="$1"
|
||||
@ -718,6 +719,9 @@ patch_enable ()
|
||||
kernel32-Cwd_Startup_Info)
|
||||
enable_kernel32_Cwd_Startup_Info="$2"
|
||||
;;
|
||||
kernel32-Debugger)
|
||||
enable_kernel32_Debugger="$2"
|
||||
;;
|
||||
kernel32-FindFirstFile)
|
||||
enable_kernel32_FindFirstFile="$2"
|
||||
;;
|
||||
@ -4436,6 +4440,18 @@ if test "$enable_kernel32_Cwd_Startup_Info" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset kernel32-Debugger
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/kernel32/except.c
|
||||
# |
|
||||
if test "$enable_kernel32_Debugger" -eq 1; then
|
||||
patch_apply kernel32-Debugger/0001-kernel32-Always-start-debugger-on-WinSta0.patch
|
||||
(
|
||||
echo '+ { "Sebastian Lackner", "kernel32: Always start debugger on WinSta0.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset kernel32-FindFirstFile
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
Loading…
Reference in New Issue
Block a user