about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedldlinux.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-10-15 20:52:16 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-10-15 20:52:16 +0200
commitd0045b158b30434c2077693d970e2167a1089e84 (patch)
treeb2951427e4870055cf79f6388d9755a227e843f7 /src/wrapped32/wrappedldlinux.c
parent1d4a9e8863d7e32f0bb1472674a94f05df1409b5 (diff)
downloadbox64-d0045b158b30434c2077693d970e2167a1089e84.tar.gz
box64-d0045b158b30434c2077693d970e2167a1089e84.zip
Some Segments/Selector handling refactoring , removing some pthread_getspecific use
Diffstat (limited to '')
-rwxr-xr-xsrc/wrapped32/wrappedldlinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapped32/wrappedldlinux.c b/src/wrapped32/wrappedldlinux.c
index b83e3559..bb138d52 100755
--- a/src/wrapped32/wrappedldlinux.c
+++ b/src/wrapped32/wrappedldlinux.c
@@ -23,14 +23,14 @@ typedef struct __attribute__((packed, aligned(4))) my32_tls_s {
 EXPORT void* my32___tls_get_addr(x64emu_t* emu, void* p)
 {
     my32_tls_t *t = (my32_tls_t*)p;
-    return GetDTatOffset(emu->context, t->i, t->o);
+    return GetDTatOffset(emu, t->i, t->o);
 }
 
 EXPORT void* my32____tls_get_addr(x64emu_t* emu)
 {
     // the GNU version (with 3 '_') use register for the parameter!
     my32_tls_t *t = (my32_tls_t*)from_ptrv(R_EAX);
-    return GetDTatOffset(emu->context, t->i, t->o);
+    return GetDTatOffset(emu, t->i, t->o);
 }
 
 EXPORT ptr_t my32___libc_stack_end;