From: Alex Ionescu Date: Sun, 27 Nov 2005 03:07:22 +0000 (+0000) Subject: - Fix a typo causing a potentially fatal bug in user-mode exceptions. Might fix hpous... X-Git-Tag: backups/ros-branch-0_2_9@19949~264 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=344d90ee35bc392640fe767dd42341b1f09d777e;hp=54f50543c1332a10d813d84b8a18f3ffe46c91cb - Fix a typo causing a potentially fatal bug in user-mode exceptions. Might fix hpoussin's bub. svn path=/trunk/; revision=19667 --- 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