- fix code assuming System process pointer is never NULL, which is the case when we're creating it.
svn path=/trunk/; revision=56001
/* Assume no section object */
SectionObject = NULL;
- /* Is the parent the initial process? */
- if (Parent != PsInitialSystemProcess)
+ /* Is the parent the initial process?
+ * Check for NULL also, as at initialization PsInitialSystemProcess is NULL */
+ if (Parent != PsInitialSystemProcess && (Parent != NULL))
{
/* It's not, so acquire the process rundown */
if (ExAcquireRundownProtection(&Parent->RundownProtect))