Author: ion
Date: Fri Oct 6 03:07:17 2006
New Revision: 24417
URL:
http://svn.reactos.org/svn/reactos?rev=24417&view=rev
Log:
- Fix some Cm callback definitions and fix call to HvInitializeHive.
Modified:
branches/alex-cm-branch/reactos/ntoskrnl/cm/cmhive.c
Modified: branches/alex-cm-branch/reactos/ntoskrnl/cm/cmhive.c
URL:
http://svn.reactos.org/svn/reactos/branches/alex-cm-branch/reactos/ntoskrnl…
==============================================================================
--- branches/alex-cm-branch/reactos/ntoskrnl/cm/cmhive.c (original)
+++ branches/alex-cm-branch/reactos/ntoskrnl/cm/cmhive.c Fri Oct 6 03:07:17 2006
@@ -21,7 +21,7 @@
PVOID
NTAPI
-CmpAllocate(IN ULONG Size,
+CmpAllocate(IN SIZE_T Size,
IN BOOLEAN Paged)
{
/* FIXME: TODO */
@@ -41,9 +41,9 @@
NTAPI
CmpFileRead(IN PHHIVE Hive,
IN ULONG FileType,
- IN ULONG FileOffset,
+ IN ULONGLONG FileOffset,
IN PVOID Buffer,
- IN ULONG BufferLength)
+ IN SIZE_T BufferLength)
{
/* FIXME: TODO */
DbgBreakPoint();
@@ -54,9 +54,9 @@
NTAPI
CmpFileWrite(IN PHHIVE Hive,
IN ULONG FileType,
- IN ULONG FileOffset,
+ IN ULONGLONG FileOffset,
IN PVOID Buffer,
- IN ULONG BufferLength)
+ IN SIZE_T BufferLength)
{
/* FIXME: TODO */
DbgBreakPoint();
@@ -67,7 +67,7 @@
NTAPI
CmpFileSetSize(IN PHHIVE Hive,
IN ULONG FileType,
- IN ULONG FileSize)
+ IN ULONGLONG FileSize)
{
/* FIXME: TODO */
DbgBreakPoint();
@@ -272,20 +272,20 @@
/* Initialize the hive */
Status = HvInitialize(&Hive->Hive,
Operation,
+ (ULONG_PTR)HiveData,
+ Cluster,
Flags,
FileType,
- (ULONG_PTR)HiveData,
CmpAllocate,
CmpFree,
CmpFileRead,
CmpFileWrite,
CmpFileSetSize,
CmpFileFlush,
- Cluster,
FileName);
if (NT_SUCCESS(Status))
{
- /* Free all alocations */
+ /* Free all allocations */
ExFreePool(Hive->ViewLock);
ExFreePool(Hive->FlusherLock);
ExFreePool(Hive);