mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 11:48:04 +00:00
- Fix an obvious bug in the code (patch by Thomas).
svn path=/trunk/; revision=27711
This commit is contained in:
parent
f2bbc79cf7
commit
c79612b989
|
@ -248,14 +248,14 @@ CmpAddValueToList(IN PHHIVE Hive,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fail if we couldn't get a cell */
|
/* 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 */
|
/* Set this cell as the child list's list cell */
|
||||||
ChildList->List = ListCell;
|
ChildList->List = ListCell;
|
||||||
|
|
||||||
/* Get the actual key list memory */
|
/* Get the actual key list memory */
|
||||||
CellData = HvGetCell(Hive, ListCell);
|
CellData = HvGetCell(Hive, ListCell);
|
||||||
if (!CellData) ASSERT(FALSE);
|
ASSERT(CellData != NULL);
|
||||||
|
|
||||||
/* Loop all the children */
|
/* Loop all the children */
|
||||||
for (i = ChildCount - 1; i > Index; i--)
|
for (i = ChildCount - 1; i > Index; i--)
|
||||||
|
|
Loading…
Reference in a new issue