ntdll: Fix context arch flag cleanup for AMD64 in context_from_server().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-11-24 18:06:39 +03:00 committed by Alexandre Julliard
parent f1958583ac
commit 6747ecdefd

View file

@ -755,7 +755,7 @@ static NTSTATUS context_from_server( void *dst, const context_t *from, USHORT ma
{
AMD64_CONTEXT *to = dst;
to_flags = to->ContextFlags & ~CONTEXT_i386;
to_flags = to->ContextFlags & ~CONTEXT_AMD64;
if ((from->flags & SERVER_CTX_CONTROL) && (to_flags & CONTEXT_AMD64_CONTROL))
{
to->ContextFlags |= CONTEXT_AMD64_CONTROL;
@ -830,7 +830,7 @@ static NTSTATUS context_from_server( void *dst, const context_t *from, USHORT ma
{
AMD64_CONTEXT *to = dst;
to_flags = to->ContextFlags & ~CONTEXT_i386;
to_flags = to->ContextFlags & ~CONTEXT_AMD64;
if ((from->flags & SERVER_CTX_CONTROL) && (to_flags & CONTEXT_AMD64_CONTROL))
{
to->ContextFlags |= CONTEXT_AMD64_CONTROL;