NtOpenKey() should return a better status value if the desired key does not exist.

svn path=/trunk/; revision=7836
This commit is contained in:
Eric Kohl 2004-01-23 10:37:17 +00:00
parent 8f96df5995
commit d1f3d3bb40

View file

@ -822,7 +822,7 @@ NtOpenKey(OUT PHANDLE KeyHandle,
if ((RemainingPath.Buffer != NULL) && (RemainingPath.Buffer[0] != 0))
{
ObDereferenceObject(Object);
return(STATUS_UNSUCCESSFUL);
return STATUS_OBJECT_NAME_NOT_FOUND;
}
/* Fail if the key has been deleted */