mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[NTOSKRNL]
Fix indentation in MmFreeMemoryArea and add a DPRINT in MmCreateMemoryArea svn path=/trunk/; revision=61660
This commit is contained in:
parent
6ea50da3a2
commit
1992b71c5c
1 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue