Author: tkreuzer
Date: Sat Feb 4 12:23:27 2012
New Revision: 55408
URL:
http://svn.reactos.org/svn/reactos?rev=55408&view=rev
Log:
[CMLIB]
Fix 64 bit / MSVC warnings
Modified:
trunk/reactos/lib/cmlib/cmdata.h
trunk/reactos/lib/cmlib/cminit.c
trunk/reactos/lib/cmlib/cmlib.h
trunk/reactos/lib/cmlib/hivecell.c
trunk/reactos/lib/cmlib/hivewrt.c
Modified: trunk/reactos/lib/cmlib/cmdata.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmdata.h?rev=554…
==============================================================================
--- trunk/reactos/lib/cmlib/cmdata.h [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cmdata.h [iso-8859-1] Sat Feb 4 12:23:27 2012
@@ -57,7 +57,7 @@
LIST_ENTRY PinViewList;
ULONG FileOffset;
ULONG Size;
- PULONG ViewAddress;
+ PULONG_PTR ViewAddress;
PVOID Bcb;
ULONG UseCount;
} CM_VIEW_OF_FILE, *PCM_VIEW_OF_FILE;
Modified: trunk/reactos/lib/cmlib/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cminit.c?rev=554…
==============================================================================
--- trunk/reactos/lib/cmlib/cminit.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cminit.c [iso-8859-1] Sat Feb 4 12:23:27 2012
@@ -18,10 +18,10 @@
{
PCM_KEY_NODE KeyCell;
HCELL_INDEX RootCellIndex;
- SIZE_T NameSize;
+ ULONG NameSize;
/* Allocate the cell */
- NameSize = strlenW(Name) * sizeof(WCHAR);
+ NameSize = (ULONG)strlenW(Name) * sizeof(WCHAR);
RootCellIndex = HvAllocateCell(Hive,
FIELD_OFFSET(CM_KEY_NODE, Name) + NameSize,
Stable,
@@ -54,7 +54,7 @@
KeyCell->MaxClassLen = 0;
KeyCell->MaxValueNameLen = 0;
KeyCell->MaxValueDataLen = 0;
-
+
/* Write the name */
KeyCell->NameLength = (USHORT)NameSize;
memcpy(KeyCell->Name, Name, NameSize);
Modified: trunk/reactos/lib/cmlib/cmlib.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/cmlib.h?rev=5540…
==============================================================================
--- trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/cmlib.h [iso-8859-1] Sat Feb 4 12:23:27 2012
@@ -253,7 +253,7 @@
HCELL_INDEX CMAPI
HvAllocateCell(
PHHIVE RegistryHive,
- SIZE_T Size,
+ ULONG Size,
HSTORAGE_TYPE Storage,
IN HCELL_INDEX Vicinity);
Modified: trunk/reactos/lib/cmlib/hivecell.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivecell.c?rev=5…
==============================================================================
--- trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] Sat Feb 4 12:23:27 2012
@@ -337,7 +337,7 @@
HCELL_INDEX CMAPI
HvAllocateCell(
PHHIVE RegistryHive,
- SIZE_T Size,
+ ULONG Size,
HSTORAGE_TYPE Storage,
HCELL_INDEX Vicinity)
{
@@ -546,7 +546,7 @@
CellRef->StaticCount++;
return TRUE;
}
-
+
/* FIXME: TODO */
DPRINT1("ERROR: Too many references\n");
while (TRUE);
@@ -562,10 +562,10 @@
/* Any references? */
if (CellRef->StaticCount > 0)
- {
+ {
/* Sanity check */
ASSERT(CellRef->StaticCount <= STATIC_CELL_PAIR_COUNT);
-
+
/* Loop them */
for (i = 0; i < CellRef->StaticCount;i++)
{
@@ -577,4 +577,4 @@
/* Free again */
CellRef->StaticCount = 0;
}
-}
+}
Modified: trunk/reactos/lib/cmlib/hivewrt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivewrt.c?rev=55…
==============================================================================
--- trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cmlib/hivewrt.c [iso-8859-1] Sat Feb 4 12:23:27 2012
@@ -14,8 +14,8 @@
PHHIVE RegistryHive)
{
ULONG FileOffset;
- SIZE_T BufferSize;
- SIZE_T BitmapSize;
+ ULONG BufferSize;
+ ULONG BitmapSize;
PUCHAR Buffer;
PUCHAR Ptr;
ULONG BlockIndex;