From a404a7acbad8feaad24dcf15afc6bf08dddbffc8 Mon Sep 17 00:00:00 2001 From: butilly Date: Mon, 2 Nov 2026 03:17:09 +0000 Subject: [PATCH] WOW64: preserve Wine-provided FS base in interpreter lookups --- src/emu/x64emu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/x64emu.c b/src/emu/x64emu.c index 16c321776..0ca40db9b 100644 --- a/src/emu/x64emu.c +++ b/src/emu/x64emu.c @@ -1686,6 +1686,9 @@ uintptr_t GetSegmentBaseEmu(x64emu_t* emu, int seg) #ifdef BOX64EC if (seg == _GS) return emu->win64_teb; +#endif +#ifdef _WIN32 + /* Wine seeds FS from the current TEB; the OS segment lookup is a stub. */ if (seg == _FS) return emu->segs_offs[_FS]; #endif