svn path=/trunk/; revision=14596
InitializeObjectAttributes(&ObjectAttributes,
ObjectPath,
InitializeObjectAttributes(&ObjectAttributes,
ObjectPath,
+ Attributes | OBJ_OPENIF,
NULL,
NULL);
Status = ObFindObject(&ObjectAttributes,
NULL,
NULL);
Status = ObFindObject(&ObjectAttributes,
if (ParentHeader &&
RemainingPath.Buffer == NULL)
{
if (ParentHeader &&
RemainingPath.Buffer == NULL)
{
- if (ParentHeader->ObjectType != Type)
+ if (ParentHeader->ObjectType != Type
+ || !(ObjectAttributes->Attributes & OBJ_OPENIF))
{
ObDereferenceObject(Parent);
return STATUS_OBJECT_NAME_COLLISION;
{
ObDereferenceObject(Parent);
return STATUS_OBJECT_NAME_COLLISION;