ntdll: Receive debug registers from server on x86_64.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sebastian Lackner 2016-01-02 04:41:01 +01:00 committed by Alexandre Julliard
parent 897ac569c8
commit 7c468f8eca
1 changed files with 3 additions and 1 deletions

View File

@ -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)