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
This commit is contained in:
Alex Ionescu 2005-08-09 00:02:24 +00:00
parent c1c22f5f98
commit 40602e6777

View file

@ -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);
}