From 344d90ee35bc392640fe767dd42341b1f09d777e Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 27 Nov 2005 03:07:22 +0000 Subject: [PATCH] - Fix a typo causing a potentially fatal bug in user-mode exceptions. Might fix hpoussin's bub. svn path=/trunk/; revision=19667 --- reactos/lib/ntdll/main/i386/dispatch.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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