don't probe ObjectAttributes if NULL

svn path=/trunk/; revision=13198
This commit is contained in:
Thomas Bluemel 2005-01-21 23:01:33 +00:00
parent bbc9243d77
commit 1b5ef0524f

View file

@ -601,7 +601,7 @@ ObCreateObject (IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL,
ASSERT_IRQL(APC_LEVEL);
if(AccessMode == UserMode)
if(AccessMode == UserMode && ObjectAttributes != NULL)
{
Status = STATUS_SUCCESS;
_SEH_TRY