Author: sginsberg
Date: Wed Aug 26 16:52:00 2009
New Revision: 42937
URL:
http://svn.reactos.org/svn/reactos?rev=42937&view=rev
Log:
- Fix a bug in KiRaiseException from 42923 -- a _SEH2_LEAVE wasn't converted to
_SEH2_YIELD
Modified:
trunk/reactos/ntoskrnl/ke/except.c
Modified: trunk/reactos/ntoskrnl/ke/except.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/except.c?rev=4…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/except.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/except.c [iso-8859-1] Wed Aug 26 16:52:00 2009
@@ -95,7 +95,6 @@
CONTEXT LocalContext;
EXCEPTION_RECORD LocalExceptionRecord;
ULONG ParameterCount, Size;
- NTSTATUS Status = STATUS_SUCCESS;
/* Check if we need to probe */
if (PreviousMode != KernelMode)
@@ -117,8 +116,7 @@
EXCEPTION_MAXIMUM_PARAMETERS)
{
/* Too large */
- Status = STATUS_INVALID_PARAMETER;
- _SEH2_LEAVE;
+ _SEH2_YIELD(return STATUS_INVALID_PARAMETER);
}
/* Probe the entire parameters now*/
@@ -162,8 +160,8 @@
PreviousMode,
SearchFrames);
- /* Return the status */
- return Status;
+ /* We are done */
+ return STATUS_SUCCESS;
}
/* EOF */