- 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
IN ULONG Flags)
{
/* FIXME: HACK! */
IN ULONG Flags)
{
/* FIXME: HACK! */
+ DPRINT1("CmCheckRegistry(0x%p, %lu) is UNIMPLEMENTED!\n", RegistryHive, Flags);
(OperationType == HINIT_MAPFILE))
{
/* Verify integrity */
(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);
{
/* Cleanup allocations and fail */
ExFreePoolWithTag(Hive->FlusherLock, TAG_CM);
LogHandle,
NULL,
HiveName,
LogHandle,
NULL,
HiveName,
if (!NT_SUCCESS(Status))
{
/* Fail */
if (!NT_SUCCESS(Status))
{
/* Fail */
/* Success, return hive */
*Hive = NewHive;
/* 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 */
if (Operation == HINIT_CREATE) CmCreateRootNode(&NewHive->Hive, L"");
/* Duplicate the hive name */