[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.

svn path=/trunk/; revision=64222
This commit is contained in:
Jérôme Gardou 2014-09-22 07:43:06 +00:00
parent 7f27244dad
commit a9b289888e

View file

@ -12,6 +12,8 @@
#define NDEBUG #define NDEBUG
#include "debug.h" #include "debug.h"
#define SOMEONE_WAS_NICE_ENOUGH_TO_MAKE_OUR_CELLS_LEXICALLY_SORTED
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/
ULONG CmpMaxFastIndexPerHblock = ULONG CmpMaxFastIndexPerHblock =
@ -218,7 +220,7 @@ CmpFindSubKeyInRoot(IN PHHIVE Hive,
/* Return it */ /* Return it */
*SubKey = LeafCell; *SubKey = LeafCell;
ReturnIndex = Low; ReturnIndex = i;
goto Return; goto Return;
} }