mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[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:
parent
7f27244dad
commit
a9b289888e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue