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

Alexandre Julliard julliard at winehq.org
Thu Nov 25 16:00:27 CST 2021


Module: wine
Branch: master
Commit: 6747ecdefdc2565c3fb4732170883c3fe01a0a06
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6747ecdefdc2565c3fb4732170883c3fe01a0a06

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Wed Nov 24 18:06:39 2021 +0300

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

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 38a03bd4b60..00261edb593 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -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;




More information about the wine-cvs mailing list