Module: wine Branch: master Commit: 75b3022aaa706663d968f7203a59ec9a38544dc3 URL: https://gitlab.winehq.org/wine/wine/-/commit/75b3022aaa706663d968f7203a59ec9...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Sep 15 15:56:37 2023 +0200
ntdll: Fix the hardcoded selector values for ARM64.
---
dlls/ntdll/process.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index 4ddf3ad59bd..3ca4195ab3d 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -249,13 +249,14 @@ NTSTATUS WINAPI RtlWow64GetThreadSelectorEntry( HANDLE handle, THREAD_DESCRIPTOR if (RtlWow64GetThreadContext( handle, &context )) { /* hardcoded values */ - context.SegCs = 0x23; #ifdef __x86_64__ + context.SegCs = 0x23; __asm__( "movw %%fs,%0" : "=m" (context.SegFs) ); __asm__( "movw %%ss,%0" : "=m" (context.SegSs) ); #else - context.SegSs = 0x2b; - context.SegFs = 0x53; + context.SegCs = 0x1b; + context.SegSs = 0x23; + context.SegFs = 0x3b; #endif }