Author: fireball
Date: Wed Jul 18 11:17:25 2007
New Revision: 27711
URL:
http://svn.reactos.org/svn/reactos?rev=27711&view=rev
Log:
- Fix an obvious bug in the code (patch by Thomas).
Modified:
trunk/reactos/ntoskrnl/config/cmvalue.c
Modified: trunk/reactos/ntoskrnl/config/cmvalue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmvalue.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmvalue.c (original)
+++ trunk/reactos/ntoskrnl/config/cmvalue.c Wed Jul 18 11:17:25 2007
@@ -248,14 +248,14 @@
}
/* Fail if we couldn't get a cell */
- if (!ListCell) return STATUS_INSUFFICIENT_RESOURCES;
+ if (ListCell == HCELL_NULL) return STATUS_INSUFFICIENT_RESOURCES;
/* Set this cell as the child list's list cell */
ChildList->List = ListCell;
/* Get the actual key list memory */
CellData = HvGetCell(Hive, ListCell);
- if (!CellData) ASSERT(FALSE);
+ ASSERT(CellData != NULL);
/* Loop all the children */
for (i = ChildCount - 1; i > Index; i--)