Module: wine
Branch: master
Commit: 47f59be21f4601a5e5014df073d076f76251e59d
URL:
https://source.winehq.org/git/wine.git/?a=commit;h=47f59be21f4601a5e5014df0…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Dec 1 12:06:29 2021 +0100
ntdll: Don't clear x86-64 registers when receiving a 32-bit context.
They can still be valid if running in Wow64 mode.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ntdll/unix/thread.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 7a32f36920f..57d355e96d2 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -850,14 +850,6 @@ static NTSTATUS context_from_server( void *dst, const context_t
*from, USHORT ma
to->Rbx = from->integer.i386_regs.ebx;
to->Rsi = from->integer.i386_regs.esi;
to->Rdi = from->integer.i386_regs.edi;
- to->R8 = 0;
- to->R9 = 0;
- to->R10 = 0;
- to->R11 = 0;
- to->R12 = 0;
- to->R13 = 0;
- to->R14 = 0;
- to->R15 = 0;
}
if ((from->flags & SERVER_CTX_SEGMENTS) && (to_flags &
CONTEXT_AMD64_SEGMENTS))
{