diff --git a/reactos/ntoskrnl/config/cmindex.c b/reactos/ntoskrnl/config/cmindex.c index ace3b54e79a..7975bf98ebf 100644 --- a/reactos/ntoskrnl/config/cmindex.c +++ b/reactos/ntoskrnl/config/cmindex.c @@ -12,6 +12,8 @@ #define NDEBUG #include "debug.h" +#define SOMEONE_WAS_NICE_ENOUGH_TO_MAKE_OUR_CELLS_LEXICALLY_SORTED + /* GLOBALS *******************************************************************/ ULONG CmpMaxFastIndexPerHblock = @@ -218,7 +220,7 @@ CmpFindSubKeyInRoot(IN PHHIVE Hive, /* Return it */ *SubKey = LeafCell; - ReturnIndex = Low; + ReturnIndex = i; goto Return; }