NtCreateKey() must return STATUS_OBJECT_NAME_NOT_FOUND if the caller tries to create a tree instead of a single key.

svn path=/trunk/; revision=4324
This commit is contained in:
Eric Kohl 2003-03-17 22:09:26 +00:00
parent b5d59b0618
commit 55d730e10e

View file

@ -102,7 +102,7 @@ NtCreateKey(OUT PHANDLE KeyHandle,
if (End != NULL)
{
ObDereferenceObject(Object);
return STATUS_UNSUCCESSFUL;
return STATUS_OBJECT_NAME_NOT_FOUND;
}
DPRINT("RemainingPath %S ParentObject %x\n", RemainingPath.Buffer, Object);