[CMLIB] Add an assert to track potential registry corruptions
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 18 Oct 2014 21:08:40 +0000 (21:08 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sat, 18 Oct 2014 21:08:40 +0000 (21:08 +0000)
svn path=/trunk/; revision=64813

reactos/lib/cmlib/hivecell.c

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