From 40602e6777d601c6f8f02522f173cc319e8bb7b3 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 9 Aug 2005 00:02:24 +0000 Subject: [PATCH] Fix exception handling by not reseting PreviousMode to kernel when a user-mode exception occurs. This fixes some winetest bugchecks svn path=/trunk/; revision=17221 --- reactos/lib/rtl/exception.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/exception.c b/reactos/lib/rtl/exception.c index b55e2a10a27..5a822b9fecb 100644 --- a/reactos/lib/rtl/exception.c +++ b/reactos/lib/rtl/exception.c @@ -67,7 +67,7 @@ RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord) ExceptionRecord->ExceptionAddress = (PVOID)(*(((PULONG)Context.Ebp)+1)); Context.ContextFlags = CONTEXT_FULL; - Status = ZwRaiseException(ExceptionRecord, &Context, TRUE); + Status = NtRaiseException(ExceptionRecord, &Context, TRUE); RtlRaiseException(ExceptionRecord); RtlRaiseStatus(Status); }