Message-ID: <42F86F12.7070100@reactos.com>
Date: Tue, 09 Aug 2005 10:53:38 +0200
From: Filip Navara <navaraf@reactos.com>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ros-dev@reactos.com
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
References: <000001c59c75$a24d78a0$6b01a8c0@PENELOPE>
In-Reply-To: <000001c59c75$a24d78a0$6b01a8c0@PENELOPE>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

ion@svn.reactos.com 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

