Return valid status
authorAlex Ionescu <aionescu@gmail.com>
Thu, 15 Sep 2005 14:07:37 +0000 (14:07 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Thu, 15 Sep 2005 14:07:37 +0000 (14:07 +0000)
svn path=/trunk/; revision=17860

reactos/lib/rtl/exception.c

index 60401ef..cd1230c 100644 (file)
@@ -39,10 +39,10 @@ RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord)
     Context.ContextFlags = CONTEXT_FULL;
 
     /* Check if we're being debugged (user-mode only) */
     Context.ContextFlags = CONTEXT_FULL;
 
     /* Check if we're being debugged (user-mode only) */
-    if (!RtlpCheckForActiveDebugger())
+    if (!RtlpCheckForActiveDebugger(TRUE))
     {
         /* Raise an exception immediately */
     {
         /* Raise an exception immediately */
-        ZwRaiseException(ExceptionRecord, &Context, TRUE);
+        Status = ZwRaiseException(ExceptionRecord, &Context, TRUE);
     }
     else
     {
     }
     else
     {
@@ -55,7 +55,7 @@ RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord)
         else
         {
             /* Continue, go back to previous context */
         else
         {
             /* Continue, go back to previous context */
-            ZwContinue(&Context, FALSE);
+            Status = ZwContinue(&Context, FALSE);
         }
     }
 
         }
     }
 
@@ -91,7 +91,7 @@ RtlRaiseStatus(NTSTATUS Status)
     Context.ContextFlags = CONTEXT_FULL;
 
     /* Check if we're being debugged (user-mode only) */
     Context.ContextFlags = CONTEXT_FULL;
 
     /* Check if we're being debugged (user-mode only) */
-    if (!RtlpCheckForActiveDebugger())
+    if (!RtlpCheckForActiveDebugger(TRUE))
     {
         /* Raise an exception immediately */
         ZwRaiseException(&ExceptionRecord, &Context, TRUE);
     {
         /* Raise an exception immediately */
         ZwRaiseException(&ExceptionRecord, &Context, TRUE);