- Fix a bug in KiRaiseException from 42923 -- a _SEH2_LEAVE wasn't converted to _SEH2...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 26 Aug 2009 14:52:00 +0000 (14:52 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Wed, 26 Aug 2009 14:52:00 +0000 (14:52 +0000)
svn path=/trunk/; revision=42937

reactos/ntoskrnl/ke/except.c

index a65156b..7a7713b 100644 (file)
@@ -95,7 +95,6 @@ KiRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
     CONTEXT LocalContext;
     EXCEPTION_RECORD LocalExceptionRecord;
     ULONG ParameterCount, Size;
     CONTEXT LocalContext;
     EXCEPTION_RECORD LocalExceptionRecord;
     ULONG ParameterCount, Size;
-    NTSTATUS Status = STATUS_SUCCESS;
 
     /* Check if we need to probe */
     if (PreviousMode != KernelMode)
 
     /* Check if we need to probe */
     if (PreviousMode != KernelMode)
@@ -117,8 +116,7 @@ KiRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
                 EXCEPTION_MAXIMUM_PARAMETERS)
             {
                 /* Too large */
                 EXCEPTION_MAXIMUM_PARAMETERS)
             {
                 /* Too large */
-                Status = STATUS_INVALID_PARAMETER;
-                _SEH2_LEAVE;
+                _SEH2_YIELD(return STATUS_INVALID_PARAMETER);
             }
 
             /* Probe the entire parameters now*/
             }
 
             /* Probe the entire parameters now*/
@@ -162,8 +160,8 @@ KiRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
                         PreviousMode,
                         SearchFrames);
 
                         PreviousMode,
                         SearchFrames);
 
-    /* Return the status */
-    return Status;
+    /* We are done */
+    return STATUS_SUCCESS;
 }
 
 /* EOF */
 }
 
 /* EOF */