kernel: Renove calls to Nt[Get|Set]ThreadContext. It's done in exception handler.

Vitaliy Margolen wine-patch at kievinfo.com
Wed Jan 18 12:27:14 CST 2006


ChangeLog:
kernel: Renove  calls to Nt[Get|Set]ThreadContext. It's done in exception handler.

 dlls/kernel/instr.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
-------------- next part --------------
67293b91cb92a90f97a289feb39d2cc5db328bfe
diff --git a/dlls/kernel/instr.c b/dlls/kernel/instr.c
index b34e08e..6a9126f 100644
--- a/dlls/kernel/instr.c
+++ b/dlls/kernel/instr.c
@@ -568,8 +568,6 @@ DWORD INSTR_EmulateInstruction( EXCEPTIO
                 switch (instr[2])
                 {
                 case 0xc8: /* mov dr1, eax */
-                    context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
-                    NtGetContextThread( GetCurrentThread(), context );
                     TRACE("mov dr1,eax at 0x%08lx\n",context->Eip);
                     context->Eax = context->Dr1;
                     context->Eip += prefixlen+3;
@@ -587,12 +585,8 @@ DWORD INSTR_EmulateInstruction( EXCEPTIO
                 switch (instr[2])
                 {
                 case 0xc8: /* mov eax, dr1 */
-                    context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
-                    NtGetContextThread( GetCurrentThread(), context );
                     context->Dr1 = context->Eax;
                     context->Eip += prefixlen+3;
-                    context->ContextFlags = CONTEXT_DEBUG_REGISTERS;
-                    NtSetContextThread( GetCurrentThread(), context );
                     return ExceptionContinueExecution;
                 }
                 ERR("Unsupported DR register, eip+2 is %02x\n", instr[2]);


More information about the wine-patches mailing list