mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[NTOSKRNL]
Fix MSVC warnings svn path=/trunk/; revision=52444
This commit is contained in:
parent
f6485fab90
commit
3412182c8e
|
@ -1166,7 +1166,7 @@ CmpSplitLeaf(IN PHHIVE Hive,
|
|||
PCM_KEY_INDEX IndexKey, LeafKey, NewKey;
|
||||
PCM_KEY_FAST_INDEX FastLeaf;
|
||||
HCELL_INDEX LeafCell, NewCell;
|
||||
ULONG FirstHalf, LastHalf;
|
||||
USHORT FirstHalf, LastHalf;
|
||||
ULONG EntrySize, TotalSize;
|
||||
|
||||
/* Get the cell */
|
||||
|
@ -1290,7 +1290,7 @@ CmpSplitLeaf(IN PHHIVE Hive,
|
|||
}
|
||||
|
||||
/* Shift the data inside the root key */
|
||||
if (RootSelect < (IndexKey->Count - 1))
|
||||
if ((RootSelect + 1) < IndexKey->Count)
|
||||
{
|
||||
RtlMoveMemory(&IndexKey->List[RootSelect + 2],
|
||||
&IndexKey->List[RootSelect + 1],
|
||||
|
@ -1425,7 +1425,7 @@ CmpSelectLeaf(IN PHHIVE Hive,
|
|||
}
|
||||
|
||||
/* No, it doesn't fit, check the next adjacent leaf */
|
||||
if (SubKeyIndex < (IndexKey->Count - 1))
|
||||
if ((SubKeyIndex + 1) < IndexKey->Count)
|
||||
{
|
||||
/* Yes, there is space */
|
||||
LeafCell = IndexKey->List[SubKeyIndex + 1];
|
||||
|
|
Loading…
Reference in a new issue