Subject: Re: [ros-diffs] [ion] 17221: Fix exception handling by not reseting PreviousMode to kernel when a user-mode exception occurs. This fixes some winetest bugchecks
From: Filip Navara <[email-masked]>
To: [email-masked]
Date: Tue, 09 Aug 2005 10:53:38 +0200

[email-masked] wrote:

>Fix exception handling by not reseting PreviousMode to kernel when a user-mode exception occurs. This fixes some winetest bugchecks
>
>Modified: trunk/reactos/lib/rtl/exception.c
>  
>
> ------------------------------------------------------------------------
> *Modified: trunk/reactos/lib/rtl/exception.c*
>
>--- trunk/reactos/lib/rtl/exception.c	2005-08-08 22:14:04 UTC (rev 17220)
>+++ trunk/reactos/lib/rtl/exception.c	2005-08-09 00:02:24 UTC (rev 17221)
>@@ -67,7 +67,7 @@
>
>   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);
> }
>  
>
This doesn't sound right ...you're passing kernel mode buffer to Nt* 
call. Perhaps it's time for KiRaiseException?

- Filip