diff --git a/reactos/dll/win32/kernel32/thread/i386/fiber.S b/reactos/dll/win32/kernel32/thread/i386/fiber.S index 00b3a17fb34..decfcaa0f25 100644 --- a/reactos/dll/win32/kernel32/thread/i386/fiber.S +++ b/reactos/dll/win32/kernel32/thread/i386/fiber.S @@ -17,7 +17,7 @@ _SwitchToFiber@4: /* Get the TEB */ - mov edx, fs:[KGDT_R3_TEB] + mov edx, fs:[TEB_SELF] /* Get the Fiber */ mov eax, [edx+TEB_FIBER_DATA] diff --git a/reactos/include/ndk/asm.h b/reactos/include/ndk/asm.h index e95248b2547..3457aa2afd0 100644 --- a/reactos/include/ndk/asm.h +++ b/reactos/include/ndk/asm.h @@ -412,6 +412,7 @@ Author: #define TEB_STACK_BASE 0x4 #define TEB_STACK_LIMIT 0x8 #define TEB_FIBER_DATA 0x10 +#define TEB_SELF 0x18 #define TEB_PEB 0x30 #define TEB_EXCEPTION_CODE 0x1A4 #define TEB_ACTIVATION_CONTEXT_STACK_POINTER 0x1A8