mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -305,7 +305,7 @@ CmInitializeRegistry(VOID)
|
||||||
RootKey->RegistryHive = CmiVolatileHive;
|
RootKey->RegistryHive = CmiVolatileHive;
|
||||||
RootKey->BlockOffset = CmiVolatileHive->HiveHeader->RootKeyCell;
|
RootKey->BlockOffset = CmiVolatileHive->HiveHeader->RootKeyCell;
|
||||||
RootKey->KeyCell = CmiGetBlock(CmiVolatileHive, RootKey->BlockOffset, NULL);
|
RootKey->KeyCell = CmiGetBlock(CmiVolatileHive, RootKey->BlockOffset, NULL);
|
||||||
RootKey->ParentKey = NULL;
|
RootKey->ParentKey = RootKey;
|
||||||
RootKey->Flags = 0;
|
RootKey->Flags = 0;
|
||||||
RootKey->NumberOfSubKeys = 0;
|
RootKey->NumberOfSubKeys = 0;
|
||||||
RootKey->SubKeys = NULL;
|
RootKey->SubKeys = NULL;
|
||||||
|
|
|
@ -328,7 +328,7 @@ CmiObjectQueryName (PVOID ObjectBody,
|
||||||
if (LocalInfo == NULL)
|
if (LocalInfo == NULL)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
if (KeyObject->ParentKey != NULL)
|
if (KeyObject->ParentKey != KeyObject)
|
||||||
{
|
{
|
||||||
Status = ObQueryNameString (KeyObject->ParentKey,
|
Status = ObQueryNameString (KeyObject->ParentKey,
|
||||||
LocalInfo,
|
LocalInfo,
|
||||||
|
@ -337,6 +337,7 @@ CmiObjectQueryName (PVOID ObjectBody,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* KeyObject is the root key */
|
||||||
Status = ObQueryNameString (BODY_TO_HEADER(KeyObject)->Parent,
|
Status = ObQueryNameString (BODY_TO_HEADER(KeyObject)->Parent,
|
||||||
LocalInfo,
|
LocalInfo,
|
||||||
MAX_PATH * sizeof(WCHAR),
|
MAX_PATH * sizeof(WCHAR),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue