[CMLIB] Add an assert to track potential registry corruptions

svn path=/trunk/; revision=64813
This commit is contained in:
Hervé Poussineau 2014-10-18 21:08:40 +00:00
parent e1db75d329
commit 6cba55f89e

View file

@ -71,6 +71,7 @@ HvGetCell(
PHHIVE RegistryHive,
HCELL_INDEX CellIndex)
{
ASSERT(CellIndex != HCELL_NIL);
return (PVOID)(HvpGetCellHeader(RegistryHive, CellIndex) + 1);
}