mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
[NTOS:CM]
- Add a DPRINT1 in CmCheckRegistry because it is unimplemented, and give the CheckFlags value to CmCheckRegistry, when it is called in CmpInitializeHive. - Give the CheckFlags value to CmpInitializeHive, when it is called in CmpInitHiveFromFile. - Really mention that the CmCreateRootNode call is a HACK for ROS. svn path=/trunk/; revision=63505
This commit is contained in:
parent
4dc4711006
commit
64fcc42ee5
|
@ -22,5 +22,6 @@ CmCheckRegistry(IN PCMHIVE RegistryHive,
|
|||
IN ULONG Flags)
|
||||
{
|
||||
/* FIXME: HACK! */
|
||||
DPRINT1("CmCheckRegistry(0x%p, %lu) is UNIMPLEMENTED!\n", RegistryHive, Flags);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -214,7 +214,8 @@ CmpInitializeHive(OUT PCMHIVE *RegistryHive,
|
|||
(OperationType == HINIT_MAPFILE))
|
||||
{
|
||||
/* Verify integrity */
|
||||
if (CmCheckRegistry((PCMHIVE)Hive, TRUE))
|
||||
ULONG CheckStatus = CmCheckRegistry(Hive, CheckFlags);
|
||||
if (CheckStatus != 0)
|
||||
{
|
||||
/* Cleanup allocations and fail */
|
||||
ExFreePoolWithTag(Hive->FlusherLock, TAG_CM);
|
||||
|
|
|
@ -358,7 +358,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
|
|||
LogHandle,
|
||||
NULL,
|
||||
HiveName,
|
||||
0);
|
||||
CheckFlags);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Fail */
|
||||
|
@ -370,7 +370,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
|
|||
/* Success, return hive */
|
||||
*Hive = NewHive;
|
||||
|
||||
/* ROS: Init root key cell and prepare the hive */
|
||||
/* HACK: ROS: Init root key cell and prepare the hive */
|
||||
if (Operation == HINIT_CREATE) CmCreateRootNode(&NewHive->Hive, L"");
|
||||
|
||||
/* Duplicate the hive name */
|
||||
|
|
Loading…
Reference in a new issue