diff --git a/reactos/ntoskrnl/include/internal/mm.h b/reactos/ntoskrnl/include/internal/mm.h index fa31f219a7d..bfe84088eff 100644 --- a/reactos/ntoskrnl/include/internal/mm.h +++ b/reactos/ntoskrnl/include/internal/mm.h @@ -507,7 +507,7 @@ NTSTATUS MmTrimUserMemory(ULONG Target, ULONG Priority, PULONG NrFreedPages); VOID -MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG* PhysicalAddr); +MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSICAL_ADDRESS* PhysicalAddr); VOID MmEnableVirtualMapping(PEPROCESS Process, PVOID Address); VOID MmDeletePageFileMapping(PEPROCESS Process, PVOID Address, diff --git a/reactos/ntoskrnl/mm/anonmem.c b/reactos/ntoskrnl/mm/anonmem.c index 439c730fc55..8767bafeb57 100644 --- a/reactos/ntoskrnl/mm/anonmem.c +++ b/reactos/ntoskrnl/mm/anonmem.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: anonmem.c,v 1.3 2002/08/17 01:42:02 dwelch Exp $ +/* $Id: anonmem.c,v 1.4 2002/08/17 15:27:54 hbirr Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/anonmem.c @@ -153,7 +153,7 @@ MmPageOutVirtualMemory(PMADDRESS_SPACE AddressSpace, * Disable the virtual mapping. */ MmDisableVirtualMapping(MemoryArea->Process, Address, - &WasDirty, (PULONG)&PhysicalAddress); + &WasDirty, &PhysicalAddress); if (PhysicalAddress.QuadPart == 0) { KeBugCheck(0); diff --git a/reactos/ntoskrnl/mm/i386/page.c b/reactos/ntoskrnl/mm/i386/page.c index 0cd0c795929..4ca7da05484 100644 --- a/reactos/ntoskrnl/mm/i386/page.c +++ b/reactos/ntoskrnl/mm/i386/page.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: page.c,v 1.40 2002/08/14 20:58:37 dwelch Exp $ +/* $Id: page.c,v 1.41 2002/08/17 15:27:54 hbirr Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/i386/page.c @@ -345,7 +345,7 @@ MmGetPhysicalAddressForProcess(PEPROCESS Process, } VOID -MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG* PhysicalAddr) +MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSICAL_ADDRESS* PhysicalAddr) /* * FUNCTION: Delete a virtual mapping */ @@ -409,7 +409,8 @@ MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG* } if (PhysicalAddr != NULL) { - *PhysicalAddr = PAGE_MASK(Pte); + PhysicalAddr->u.HighPart = 0; + PhysicalAddr->u.LowPart = PAGE_MASK(Pte); } }