projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e1db75d
)
[CMLIB] Add an assert to track potential registry corruptions
author
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 18 Oct 2014 21:08:40 +0000
(21:08 +0000)
committer
Hervé 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
patch
|
blob
|
history
diff --git
a/reactos/lib/cmlib/hivecell.c
b/reactos/lib/cmlib/hivecell.c
index
c4f3db2
..
dec90b4
100644
(file)
--- a/
reactos/lib/cmlib/hivecell.c
+++ b/
reactos/lib/cmlib/hivecell.c
@@
-71,6
+71,7
@@
HvGetCell(
PHHIVE RegistryHive,
HCELL_INDEX CellIndex)
{
+ ASSERT(CellIndex != HCELL_NIL);
return (PVOID)(HvpGetCellHeader(RegistryHive, CellIndex) + 1);
}