X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=ntoskrnl%2Fob%2Fobdir.c;h=f8e3a36a06a2dad2a085ec314247cbe53d459a8b;hp=b2f1f14382ac53c511c510efb06a4474492fb79b;hb=b16a07fa6913184abe2d2bee321f8f7aef919808;hpb=4f725452473a0baea096b5d070ab293bd7c80932 diff --git a/ntoskrnl/ob/obdir.c b/ntoskrnl/ob/obdir.c index b2f1f14382a..f8e3a36a06a 100644 --- a/ntoskrnl/ob/obdir.c +++ b/ntoskrnl/ob/obdir.c @@ -17,8 +17,7 @@ #define NDEBUG #include -BOOLEAN ObpLUIDDeviceMapsEnabled; -POBJECT_TYPE ObDirectoryType = NULL; +POBJECT_TYPE ObpDirectoryObjectType = NULL; /* PRIVATE FUNCTIONS ******************************************************/ @@ -141,7 +140,7 @@ ObpLookupEntryDirectory(IN POBJECT_DIRECTORY Directory, PAGED_CODE(); /* Check if we should search the shadow directory */ - if (!ObpLUIDDeviceMapsEnabled) SearchShadow = FALSE; + if (ObpLUIDDeviceMapsEnabled == 0) SearchShadow = FALSE; /* Fail if we don't have a directory or name */ if (!(Directory) || !(Name)) goto Quickie; @@ -383,7 +382,7 @@ NtOpenDirectoryObject(OUT PHANDLE DirectoryHandle, /* Open the directory object */ Status = ObOpenObjectByName(ObjectAttributes, - ObDirectoryType, + ObpDirectoryObjectType, PreviousMode, NULL, DesiredAccess, @@ -520,7 +519,7 @@ NtQueryDirectoryObject(IN HANDLE DirectoryHandle, /* Get a reference to directory */ Status = ObReferenceObjectByHandle(DirectoryHandle, DIRECTORY_QUERY, - ObDirectoryType, + ObpDirectoryObjectType, PreviousMode, (PVOID*)&Directory, NULL); @@ -756,7 +755,7 @@ NtCreateDirectoryObject(OUT PHANDLE DirectoryHandle, /* Create the object */ Status = ObCreateObject(PreviousMode, - ObDirectoryType, + ObpDirectoryObjectType, ObjectAttributes, PreviousMode, NULL,