https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7afecee5ebc39c1446be3…
commit 7afecee5ebc39c1446be320f057fd47c63bdbf5f
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Oct 23 11:46:46 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:21 2021 +0100
[NTOSKRNL] Rename MM_ROS_SECTION_OBJECT:SectionPageProtection to
InitialPageProtection
---
ntoskrnl/include/internal/mm.h | 2 +-
ntoskrnl/mm/section.c | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ntoskrnl/include/internal/mm.h b/ntoskrnl/include/internal/mm.h
index e803142d651..160c19a8a76 100644
--- a/ntoskrnl/include/internal/mm.h
+++ b/ntoskrnl/include/internal/mm.h
@@ -200,7 +200,7 @@ typedef struct _ROS_SECTION_OBJECT
CSHORT Type;
CSHORT Size;
LARGE_INTEGER SizeOfSection;
- ULONG SectionPageProtection;
+ ULONG InitialPageProtection;
ULONG AllocationAttributes;
PFILE_OBJECT FileObject;
union
diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c
index 13835bb94ac..9704ddba8f6 100644
--- a/ntoskrnl/mm/section.c
+++ b/ntoskrnl/mm/section.c
@@ -2879,7 +2879,7 @@ MmCreatePageFileSection(PROS_SECTION_OBJECT *SectionObject,
RtlZeroMemory(Section, sizeof(ROS_SECTION_OBJECT));
Section->Type = 'SC';
Section->Size = 'TN';
- Section->SectionPageProtection = SectionPageProtection;
+ Section->InitialPageProtection = SectionPageProtection;
Section->AllocationAttributes = AllocationAttributes;
Section->SizeOfSection = MaximumSize;
Segment = ExAllocatePoolWithTag(NonPagedPool, sizeof(MM_SECTION_SEGMENT),
@@ -2949,7 +2949,7 @@ MmCreateDataFileSection(PROS_SECTION_OBJECT *SectionObject,
RtlZeroMemory(Section, sizeof(ROS_SECTION_OBJECT));
Section->Type = 'SC';
Section->Size = 'TN';
- Section->SectionPageProtection = SectionPageProtection;
+ Section->InitialPageProtection = SectionPageProtection;
Section->AllocationAttributes = AllocationAttributes;
/*
@@ -3774,7 +3774,7 @@ MmCreateImageSection(PROS_SECTION_OBJECT *SectionObject,
RtlZeroMemory(Section, sizeof(ROS_SECTION_OBJECT));
Section->Type = 'SC';
Section->Size = 'TN';
- Section->SectionPageProtection = SectionPageProtection;
+ Section->InitialPageProtection = SectionPageProtection;
Section->AllocationAttributes = AllocationAttributes;
if (FileObject->SectionObjectPointer->ImageSectionObject == NULL)
@@ -4641,21 +4641,21 @@ MmMapViewOfSection(IN PVOID SectionObject,
{
/* check for write access */
if ((Protect & (PAGE_READWRITE|PAGE_EXECUTE_READWRITE)) &&
- !(Section->SectionPageProtection &
(PAGE_READWRITE|PAGE_EXECUTE_READWRITE)))
+ !(Section->InitialPageProtection &
(PAGE_READWRITE|PAGE_EXECUTE_READWRITE)))
{
MmUnlockAddressSpace(AddressSpace);
return STATUS_SECTION_PROTECTION;
}
/* check for read access */
if ((Protect &
(PAGE_READONLY|PAGE_WRITECOPY|PAGE_EXECUTE_READ|PAGE_EXECUTE_WRITECOPY)) &&
- !(Section->SectionPageProtection &
(PAGE_READONLY|PAGE_READWRITE|PAGE_WRITECOPY|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY)))
+ !(Section->InitialPageProtection &
(PAGE_READONLY|PAGE_READWRITE|PAGE_WRITECOPY|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY)))
{
MmUnlockAddressSpace(AddressSpace);
return STATUS_SECTION_PROTECTION;
}
/* check for execute access */
if ((Protect &
(PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY))
&&
- !(Section->SectionPageProtection &
(PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY)))
+ !(Section->InitialPageProtection &
(PAGE_EXECUTE|PAGE_EXECUTE_READ|PAGE_EXECUTE_READWRITE|PAGE_EXECUTE_WRITECOPY)))
{
MmUnlockAddressSpace(AddressSpace);
return STATUS_SECTION_PROTECTION;
@@ -5133,7 +5133,7 @@ MmCreateSection (OUT PVOID * Section,
DesiredAccess,
ObjectAttributes,
SizeOfSection,
- SectionPageProtection,
+ InitialPageProtection,
AllocationAttributes,
FileObject);
}