mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Point the root key's parent key pointer to the root key to prevent check routines from reporting false positives.
svn path=/trunk/; revision=4827
This commit is contained in:
parent
642d896c7b
commit
1018ad9087
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: registry.c,v 1.102 2003/06/02 16:51:15 ekohl Exp $
|
||||
/* $Id: registry.c,v 1.103 2003/06/03 07:28:01 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -305,7 +305,7 @@ CmInitializeRegistry(VOID)
|
|||
RootKey->RegistryHive = CmiVolatileHive;
|
||||
RootKey->BlockOffset = CmiVolatileHive->HiveHeader->RootKeyCell;
|
||||
RootKey->KeyCell = CmiGetBlock(CmiVolatileHive, RootKey->BlockOffset, NULL);
|
||||
RootKey->ParentKey = NULL;
|
||||
RootKey->ParentKey = RootKey;
|
||||
RootKey->Flags = 0;
|
||||
RootKey->NumberOfSubKeys = 0;
|
||||
RootKey->SubKeys = NULL;
|
||||
|
|
|
@ -328,7 +328,7 @@ CmiObjectQueryName (PVOID ObjectBody,
|
|||
if (LocalInfo == NULL)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
if (KeyObject->ParentKey != NULL)
|
||||
if (KeyObject->ParentKey != KeyObject)
|
||||
{
|
||||
Status = ObQueryNameString (KeyObject->ParentKey,
|
||||
LocalInfo,
|
||||
|
@ -337,6 +337,7 @@ CmiObjectQueryName (PVOID ObjectBody,
|
|||
}
|
||||
else
|
||||
{
|
||||
/* KeyObject is the root key */
|
||||
Status = ObQueryNameString (BODY_TO_HEADER(KeyObject)->Parent,
|
||||
LocalInfo,
|
||||
MAX_PATH * sizeof(WCHAR),
|
||||
|
|
Loading…
Reference in a new issue