Author: jgardou
Date: Mon Sep 22 07:43:06 2014
New Revision: 64222
URL: http://svn.reactos.org/svn/reactos?rev=64222&view=rev
Log:
[NTOS/CM]
- Return the right index when the root subleaf is found.
- Let's pretend I was nice enough to make the cells lexically sorted when in fact I just corrected a stupid binary search.
WARNING: this breaks ntoskrnl reading hive files produced before this revision. Sorry, this is a breaking change.
CORE-8524 #comment Committed, let's see what happens in the next days.
Modified:
trunk/reactos/ntoskrnl/config/cmindex.c
Modified: trunk/reactos/ntoskrnl/config/cmindex.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmindex.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmindex.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cmindex.c [iso-8859-1] Mon Sep 22 07:43:06 2014
@@ -11,6 +11,8 @@
#include "ntoskrnl.h"
#define NDEBUG
#include "debug.h"
+
+#define SOMEONE_WAS_NICE_ENOUGH_TO_MAKE_OUR_CELLS_LEXICALLY_SORTED
/* GLOBALS *******************************************************************/
@@ -218,7 +220,7 @@
/* Return it */
*SubKey = LeafCell;
- ReturnIndex = Low;
+ ReturnIndex = i;
goto Return;
}