Author: hpoussin
Date: Sat Oct 18 21:08:40 2014
New Revision: 64813
URL:
http://svn.reactos.org/svn/reactos?rev=64813&view=rev
Log:
[CMLIB] Add an assert to track potential registry corruptions
Modified:
trunk/reactos/lib/cmlib/hivecell.c
Modified: trunk/reactos/lib/cmlib/hivecell.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivecell.c?rev=6…
==============================================================================
--- trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] Sat Oct 18 21:08:40 2014
@@ -71,6 +71,7 @@
PHHIVE RegistryHive,
HCELL_INDEX CellIndex)
{
+ ASSERT(CellIndex != HCELL_NIL);
return (PVOID)(HvpGetCellHeader(RegistryHive, CellIndex) + 1);
}