[SDK][CMLIB] Purge volatile data of registry in a proper way with CmCheckRegistry

Thanks to CmCheckRegistry, the function can perform volatile data purging upon boot which this removes old hacky CmPrepareHive code. This also slightly refactors HvInitialize making it more proper.
This commit is contained in:
George Bișoc 2022-10-26 21:29:03 +02:00
parent cc63d8f4a2
commit 4db1b0fb62
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6
3 changed files with 0 additions and 83 deletions

View file

@ -1443,13 +1443,6 @@ HvInitialize(
}
}
if (!NT_SUCCESS(Status)) return Status;
/* HACK: ROS: Init root key cell and prepare the hive */
// r31253
// if (OperationType == HINIT_CREATE) CmCreateRootNode(Hive, L"");
if (OperationType != HINIT_CREATE) CmPrepareHive(Hive);
return Status;
}