[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:
Hermès Bélusca-Maïto 2014-05-30 20:40:02 +00:00
parent 4dc4711006
commit 64fcc42ee5
3 changed files with 5 additions and 3 deletions

View file

@ -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;
}

View file

@ -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);

View file

@ -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 */