[NTOSKRNL]

Fix indentation in MmFreeMemoryArea and add a DPRINT in MmCreateMemoryArea

svn path=/trunk/; revision=61660
This commit is contained in:
Timo Kreuzer 2014-01-17 21:51:39 +00:00
parent 6ea50da3a2
commit 1992b71c5c

View file

@ -828,9 +828,9 @@ MmFreeMemoryArea(
Address < (ULONG_PTR)EndAddress; Address < (ULONG_PTR)EndAddress;
Address += PAGE_SIZE) Address += PAGE_SIZE)
{ {
BOOLEAN Dirty = FALSE; BOOLEAN Dirty = FALSE;
SWAPENTRY SwapEntry = 0; SWAPENTRY SwapEntry = 0;
PFN_NUMBER Page = 0; PFN_NUMBER Page = 0;
if (MmIsPageSwapEntry(Process, (PVOID)Address)) if (MmIsPageSwapEntry(Process, (PVOID)Address))
{ {
@ -1058,7 +1058,11 @@ MmCreateMemoryArea(PMMSUPPORT AddressSpace,
TAG_MAREA); TAG_MAREA);
} }
if (!MemoryArea) return STATUS_NO_MEMORY; if (!MemoryArea)
{
DPRINT1("Not enough memory.\n");
return STATUS_NO_MEMORY;
}
RtlZeroMemory(MemoryArea, sizeof(MEMORY_AREA)); RtlZeroMemory(MemoryArea, sizeof(MEMORY_AREA));
MemoryArea->Type = Type; MemoryArea->Type = Type;