- Fix an obvious bug in the code (patch by Thomas).

svn path=/trunk/; revision=27711
This commit is contained in:
Aleksey Bragin 2007-07-18 07:17:25 +00:00
parent f2bbc79cf7
commit c79612b989

View file

@ -248,14 +248,14 @@ CmpAddValueToList(IN PHHIVE Hive,
}
/* 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--)