mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +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)
|
IN ULONG Flags)
|
||||||
{
|
{
|
||||||
/* FIXME: HACK! */
|
/* FIXME: HACK! */
|
||||||
|
DPRINT1("CmCheckRegistry(0x%p, %lu) is UNIMPLEMENTED!\n", RegistryHive, Flags);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,7 +214,8 @@ CmpInitializeHive(OUT PCMHIVE *RegistryHive,
|
||||||
(OperationType == HINIT_MAPFILE))
|
(OperationType == HINIT_MAPFILE))
|
||||||
{
|
{
|
||||||
/* Verify integrity */
|
/* Verify integrity */
|
||||||
if (CmCheckRegistry((PCMHIVE)Hive, TRUE))
|
ULONG CheckStatus = CmCheckRegistry(Hive, CheckFlags);
|
||||||
|
if (CheckStatus != 0)
|
||||||
{
|
{
|
||||||
/* Cleanup allocations and fail */
|
/* Cleanup allocations and fail */
|
||||||
ExFreePoolWithTag(Hive->FlusherLock, TAG_CM);
|
ExFreePoolWithTag(Hive->FlusherLock, TAG_CM);
|
||||||
|
|
|
@ -358,7 +358,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
|
||||||
LogHandle,
|
LogHandle,
|
||||||
NULL,
|
NULL,
|
||||||
HiveName,
|
HiveName,
|
||||||
0);
|
CheckFlags);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Fail */
|
/* Fail */
|
||||||
|
@ -370,7 +370,7 @@ CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
|
||||||
/* Success, return hive */
|
/* Success, return hive */
|
||||||
*Hive = NewHive;
|
*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"");
|
if (Operation == HINIT_CREATE) CmCreateRootNode(&NewHive->Hive, L"");
|
||||||
|
|
||||||
/* Duplicate the hive name */
|
/* Duplicate the hive name */
|
||||||
|
|
Loading…
Reference in a new issue