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

svn path=/trunk/; revision=8361
This commit is contained in:
David Welch 2004-02-24 23:51:04 +00:00
parent 446f263ed3
commit 7eeed46004

View file

@ -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 @@ RtlpDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
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 */