mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
ObCreateObject should return an existing named object if one already exist.
svn path=/trunk/; revision=14560
This commit is contained in:
parent
366a70a52a
commit
6256db0836
1 changed files with 7 additions and 2 deletions
|
@ -712,8 +712,13 @@ ObCreateObject (IN KPROCESSOR_MODE ObjectAttributesAccessMode OPTIONAL,
|
|||
if (ParentHeader &&
|
||||
RemainingPath.Buffer == NULL)
|
||||
{
|
||||
ObDereferenceObject(Parent);
|
||||
return STATUS_OBJECT_NAME_COLLISION;
|
||||
if (ParentHeader->ObjectType != Type)
|
||||
{
|
||||
ObDereferenceObject(Parent);
|
||||
return STATUS_OBJECT_NAME_COLLISION;
|
||||
}
|
||||
*Object = Parent;
|
||||
return STATUS_OBJECT_EXISTS;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue