- Fixed the releasing of the memory from the init section.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 1 Jan 2005 10:59:31 +0000 (10:59 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 1 Jan 2005 10:59:31 +0000 (10:59 +0000)
svn path=/trunk/; revision=12685

reactos/ntoskrnl/mm/mminit.c

index 3d4610b..5e56757 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mminit.c,v 1.71 2004/10/22 20:38:22 ekohl Exp $
+/* $Id$
  *
  * COPYRIGHT:   See COPYING in the top directory
  * PROJECT:     ReactOS kernel 
@@ -482,7 +482,7 @@ MiFreeInitMemory(VOID)
    MmLockAddressSpace(MmGetKernelAddressSpace());
    MmFreeMemoryArea(MmGetKernelAddressSpace(),
                     (PVOID)&_init_start__,
-                    PAGE_ROUND_UP((ULONG)&_init_end__) - (ULONG)_init_start__,
+                    PAGE_ROUND_UP((ULONG)&_init_end__) - (ULONG)&_init_start__,
                     MiFreeInitMemoryPage,
                     NULL);
    MmUnlockAddressSpace(MmGetKernelAddressSpace());