update for HEAD-2003050101
[reactos.git] / ntoskrnl / rtl / i386 / exception.c
index 6cec442..f145840 100755 (executable)
@@ -321,11 +321,12 @@ RtlUnwind(PEXCEPTION_REGISTRATION RegistrationFrame,
  
   DPRINT("ERHead is 0x%X\n", ERHead);
 
+  pExceptRec = &TempER;
+
   if (ExceptionRecord == NULL) // The normal case
   {
-       DPRINT("ExceptionRecord == NULL (normal)\n");
+    DPRINT("ExceptionRecord == NULL (normal)\n");
 
-    pExceptRec = &TempER;
     pExceptRec->ExceptionFlags = 0;
     pExceptRec->ExceptionCode = STATUS_UNWIND;
     pExceptRec->ExceptionRecord = NULL;
@@ -342,11 +343,11 @@ RtlUnwind(PEXCEPTION_REGISTRATION RegistrationFrame,
   DPRINT("ExceptionFlags == 0x%x:\n", pExceptRec->ExceptionFlags);
   if (pExceptRec->ExceptionFlags & EXCEPTION_UNWINDING)
   {
-         DPRINT("  * EXCEPTION_UNWINDING (0x%x)\n", EXCEPTION_UNWINDING);
+    DPRINT("  * EXCEPTION_UNWINDING (0x%x)\n", EXCEPTION_UNWINDING);
   }
   if (pExceptRec->ExceptionFlags & EXCEPTION_EXIT_UNWIND)
   {
-         DPRINT("  * EXCEPTION_EXIT_UNWIND (0x%x)\n", EXCEPTION_EXIT_UNWIND);
+    DPRINT("  * EXCEPTION_EXIT_UNWIND (0x%x)\n", EXCEPTION_EXIT_UNWIND);
   }
 #endif /* NDEBUG */