Added patch to avoid filling KdHelp structure for uermode applications.

This commit is contained in:
Sebastian Lackner
2014-09-15 22:58:22 +02:00
parent d874e1323d
commit 943405c277
5 changed files with 58 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ PATCHLIST := \
comctl32-LoadIconMetric.ok \
configure-Absolute_RPATH.ok \
configure-Detect_Gnutls.ok \
dbghelp-KdHelp.ok \
dsound-Fast_Mixer.ok \
fonts-Missing_Fonts.ok \
iphlpapi-TCP_Table.ok \
@@ -267,6 +268,24 @@ configure-Detect_Gnutls.ok:
echo '+ { "configure-Detect_Gnutls", "Sebastian Lackner", "Fix detection of gnutls on Ubuntu 14.10. [rev 3]" },'; \
) > configure-Detect_Gnutls.ok
# Patchset dbghelp-KdHelp
# |
# | Included patches:
# | * Don't fill KdHelp structure for usermode applications. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#37272] Don't fill KdHelp structure for usermode applications
# |
# | Modified files:
# | * dlls/dbghelp/stack.c
# |
.INTERMEDIATE: dbghelp-KdHelp.ok
dbghelp-KdHelp.ok:
$(call APPLY_FILE,dbghelp-KdHelp/0001-dbghelp-Don-t-fill-KdHelp-structure-for-usermode-app.patch)
@( \
echo '+ { "dbghelp-KdHelp", "Sebastian Lackner", "Don't fill KdHelp structure for usermode applications." },'; \
) > dbghelp-KdHelp.ok
# Patchset dsound-Fast_Mixer
# |
# | Included patches:

View File

@@ -0,0 +1,32 @@
From 78ab3400ea9c3c9ae9d85f3ee2952c20c7d68f73 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Mon, 15 Sep 2014 22:55:49 +0200
Subject: dbghelp: Don't fill KdHelp structure for usermode applications.
---
dlls/dbghelp/stack.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/dlls/dbghelp/stack.c b/dlls/dbghelp/stack.c
index 3e1ff72..21412f6 100644
--- a/dlls/dbghelp/stack.c
+++ b/dlls/dbghelp/stack.c
@@ -240,15 +240,6 @@ BOOL WINAPI StackWalk64(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
if (!cpu->stack_walk(&csw, frame, ctx)) return FALSE;
/* we don't handle KdHelp */
- frame->KdHelp.Thread = 0xC000FADE;
- frame->KdHelp.ThCallbackStack = 0x10;
- frame->KdHelp.ThCallbackBStore = 0;
- frame->KdHelp.NextCallback = 0;
- frame->KdHelp.FramePointer = 0;
- frame->KdHelp.KiCallUserMode = 0xD000DAFE;
- frame->KdHelp.KeUserCallbackDispatcher = 0xE000F000;
- frame->KdHelp.SystemRangeStart = 0xC0000000;
- frame->KdHelp.Reserved[0] /* KiUserExceptionDispatcher */ = 0xE0005000;
return TRUE;
}
--
2.1.0

View File

@@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Don't fill KdHelp structure for usermode applications.
Revision: 1
Fixes: [37272] Don't fill KdHelp structure for usermode applications