mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[NTOSKRNL]
Fix indentation in MmFreeMemoryArea and add a DPRINT in MmCreateMemoryArea svn path=/trunk/; revision=61660
This commit is contained in:
@@ -828,9 +828,9 @@ MmFreeMemoryArea(
|
||||
Address < (ULONG_PTR)EndAddress;
|
||||
Address += PAGE_SIZE)
|
||||
{
|
||||
BOOLEAN Dirty = FALSE;
|
||||
SWAPENTRY SwapEntry = 0;
|
||||
PFN_NUMBER Page = 0;
|
||||
BOOLEAN Dirty = FALSE;
|
||||
SWAPENTRY SwapEntry = 0;
|
||||
PFN_NUMBER Page = 0;
|
||||
|
||||
if (MmIsPageSwapEntry(Process, (PVOID)Address))
|
||||
{
|
||||
@@ -1058,7 +1058,11 @@ MmCreateMemoryArea(PMMSUPPORT AddressSpace,
|
||||
TAG_MAREA);
|
||||
}
|
||||
|
||||
if (!MemoryArea) return STATUS_NO_MEMORY;
|
||||
if (!MemoryArea)
|
||||
{
|
||||
DPRINT1("Not enough memory.\n");
|
||||
return STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
RtlZeroMemory(MemoryArea, sizeof(MEMORY_AREA));
|
||||
MemoryArea->Type = Type;
|
||||
|
||||
Reference in New Issue
Block a user