Author: tkreuzer
Date: Fri Jun 24 15:52:19 2011
New Revision: 52444
URL:
http://svn.reactos.org/svn/reactos?rev=52444&view=rev
Log:
[NTOSKRNL]
Fix MSVC warnings
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] Fri Jun 24 15:52:19 2011
@@ -1166,7 +1166,7 @@
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 @@
}
/* 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 @@
}
/* 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];