Alexandre Julliard : ntdll: Copy extended registers too in copy_context().

Alexandre Julliard julliard at winehq.org
Wed Jan 16 07:09:30 CST 2008


Module: wine
Branch: master
Commit: f45b7078bfea35e599914ae1cc73b6521cae8352
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f45b7078bfea35e599914ae1cc73b6521cae8352

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jan 15 18:00:13 2008 +0100

ntdll: Copy extended registers too in copy_context().

---

 dlls/ntdll/thread.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index a934392..88ded56 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -886,6 +886,10 @@ static inline void copy_context( CONTEXT *to, const CONTEXT *from, DWORD flags )
     {
         to->FloatSave = from->FloatSave;
     }
+    if (flags & CONTEXT_EXTENDED_REGISTERS)
+    {
+        memcpy( to->ExtendedRegisters, from->ExtendedRegisters, sizeof(to->ExtendedRegisters) );
+    }
 #elif defined(__x86_64__)
     flags &= ~CONTEXT_AMD64;  /* get rid of CPU id */
     if (flags & CONTEXT_CONTROL)




More information about the wine-cvs mailing list