[2/3] ntdll: Receive debug registers from server on x86_64.

Sebastian Lackner sebastian at fds-team.de
Fri Jan 1 21:41:01 CST 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

Similar to i386/amd64, we need a wineserver call when we want to obtain
the current debug registers.

 dlls/ntdll/thread.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index aaf7a71..1455eb1 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -830,9 +830,11 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
     DWORD needed_flags = context->ContextFlags;
     BOOL self = (handle == GetCurrentThread());
 
+    /* on i386/amd64 debug registers always require a server call */
 #ifdef __i386__
-    /* on i386 debug registers always require a server call */
     if (context->ContextFlags & (CONTEXT_DEBUG_REGISTERS & ~CONTEXT_i386)) self = FALSE;
+#elif defined(__x86_64__)
+    if (context->ContextFlags & (CONTEXT_DEBUG_REGISTERS & ~CONTEXT_AMD64)) self = FALSE;
 #endif
 
     if (!self)
-- 
2.6.4



More information about the wine-patches mailing list