Commit in reactos/ntoskrnl/rtl/i386 on MAIN
exception.c+10-11.9 -> 1.10

- Avoid a crashing when trying to process an exception early in the boot process.

reactos/ntoskrnl/rtl/i386
exception.c 1.9 -> 1.10
diff -u -r1.9 -r1.10
--- exception.c	30 Dec 2003 18:52:06 -0000	1.9
+++ exception.c	24 Feb 2004 23:51:04 -0000	1.10
@@ -1,4 +1,4 @@
-/* $Id: exception.c,v 1.9 2003/12/30 18:52:06 fireball Exp $
+/* $Id: exception.c,v 1.10 2004/02/24 23:51:04 dwelch Exp $
  *
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS kernel
@@ -165,6 +165,15 @@
 
   DPRINT("RtlpDispatchException()\n");
 
+  /*
+    This could be true very early in the boot process 
+    in which case there is no point in continuing. 
+  */
+  if (KeGetCurrentThread() == NULL)
+    {
+      return ExceptionContinueExecution;
+    }
+
 #ifndef NDEBUG
   RtlpDumpExceptionRegistrations();
 #endif /* NDEBUG */
CVSspam 0.2.8