mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
ObCreateObject should return an existing named object if one already exist.
svn path=/trunk/; revision=14560
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user