From 649c865a467c4566c99d3edf42d80329521a06ca Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Fri, 4 Dec 2009 08:11:59 +0000 Subject: [PATCH] [ntoskrnl/config] - CmpFindSubKeyByName: Remove the check for (Found) when checking if SubKey is valid as index can be 0. svn path=/trunk/; revision=44400 --- reactos/ntoskrnl/config/cmindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/config/cmindex.c b/reactos/ntoskrnl/config/cmindex.c index 0948bd31dd4..cbb8b284cf8 100644 --- a/reactos/ntoskrnl/config/cmindex.c +++ b/reactos/ntoskrnl/config/cmindex.c @@ -752,7 +752,7 @@ CmpFindSubKeyByName(IN PHHIVE Hive, return HCELL_NIL; } - if ((Found) && (SubKey != HCELL_NIL)) + if (SubKey != HCELL_NIL) { HvReleaseCell(Hive, CellToRelease); return SubKey;