mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 07:41:51 +00:00
NtOpenKey() should return a better status value if the desired key does not exist.
svn path=/trunk/; revision=7836
This commit is contained in:
parent
8f96df5995
commit
d1f3d3bb40
1 changed files with 1 additions and 1 deletions
|
@ -822,7 +822,7 @@ NtOpenKey(OUT PHANDLE KeyHandle,
|
||||||
if ((RemainingPath.Buffer != NULL) && (RemainingPath.Buffer[0] != 0))
|
if ((RemainingPath.Buffer != NULL) && (RemainingPath.Buffer[0] != 0))
|
||||||
{
|
{
|
||||||
ObDereferenceObject(Object);
|
ObDereferenceObject(Object);
|
||||||
return(STATUS_UNSUCCESSFUL);
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fail if the key has been deleted */
|
/* Fail if the key has been deleted */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue