mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 06:28:34 +00:00
- Changes to lookup context set-up as place-holder and compatibility for future patch. Only configure the lookup context once, outside the initial loop, instead of configuring it with the same settings at each iteration.
svn path=/trunk/; revision=25371
This commit is contained in:
parent
569e9458d6
commit
956ae8b6f1
1 changed files with 8 additions and 8 deletions
|
@ -12,11 +12,9 @@
|
|||
|
||||
#include <ntoskrnl.h>
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
#include <debug.h>
|
||||
|
||||
#if defined (ALLOC_PRAGMA)
|
||||
#pragma alloc_text(INIT, ObInit)
|
||||
#endif
|
||||
/* GLOBALS *******************************************************************/
|
||||
|
||||
GENERIC_MAPPING ObpTypeMapping =
|
||||
{
|
||||
|
@ -280,6 +278,10 @@ ObPostPhase0:
|
|||
Status = NtClose(Handle);
|
||||
if (!NT_SUCCESS(Status)) return FALSE;
|
||||
|
||||
Context.Object = NULL;
|
||||
Context.Directory = ObpTypeDirectoryObject;
|
||||
Context.DirectoryLocked = TRUE;
|
||||
|
||||
/* Loop the object types */
|
||||
ListHead = &ObTypeObjectType->TypeList;
|
||||
NextEntry = ListHead->Flink;
|
||||
|
@ -297,10 +299,6 @@ ObPostPhase0:
|
|||
/* Make sure we have a name, and aren't inserted yet */
|
||||
if ((NameInfo) && !(NameInfo->Directory))
|
||||
{
|
||||
/* Set up the context for the insert */
|
||||
Context.Directory = ObpTypeDirectoryObject;
|
||||
Context.DirectoryLocked = TRUE;
|
||||
|
||||
/* Do the initial lookup to setup the context */
|
||||
if (!ObpLookupEntryDirectory(ObpTypeDirectoryObject,
|
||||
&NameInfo->Name,
|
||||
|
@ -319,6 +317,8 @@ ObPostPhase0:
|
|||
NextEntry = NextEntry->Flink;
|
||||
}
|
||||
|
||||
Context.Object = NULL;
|
||||
|
||||
/* Initialize DOS Devices Directory and related Symbolic Links */
|
||||
Status = ObpCreateDosDevicesDirectory();
|
||||
if (!NT_SUCCESS(Status)) return FALSE;
|
||||
|
|
Loading…
Reference in a new issue