diff --git a/reactos/lib/ntdll/main/i386/dispatch.S b/reactos/lib/ntdll/main/i386/dispatch.S index ee46d0d77c3..ab5123599bf 100644 --- a/reactos/lib/ntdll/main/i386/dispatch.S +++ b/reactos/lib/ntdll/main/i386/dispatch.S @@ -116,7 +116,7 @@ _KiRaiseUserExceptionDispatcher@0: sub esp, SIZEOF_EXCEPTION_RECORD /* Fill out the record */ - mov eax, [fs:TEB_SELECTOR] + mov eax, [fs:KPCR_TEB] mov eax, [eax+TEB_EXCEPTION_CODE] mov [esp+EXCEPTION_RECORD_EXCEPTION_CODE], eax mov dword ptr [esp+EXCEPTION_RECORD_EXCEPTION_FLAGS], 0