From c79612b9892c3106e543d1a37999e0ef18c12330 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 18 Jul 2007 07:17:25 +0000 Subject: [PATCH] - Fix an obvious bug in the code (patch by Thomas). svn path=/trunk/; revision=27711 --- reactos/ntoskrnl/config/cmvalue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/config/cmvalue.c b/reactos/ntoskrnl/config/cmvalue.c index 79c07f2bf6c..e0c4c2b6d6a 100644 --- a/reactos/ntoskrnl/config/cmvalue.c +++ b/reactos/ntoskrnl/config/cmvalue.c @@ -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--)