mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user