[NTOSKRNL][NDK] Get rid of SECTION_OBJECT typedef
authorJérôme Gardou <jerome.gardou@reactos.org>
Fri, 23 Oct 2020 09:38:20 +0000 (11:38 +0200)
committerJérôme Gardou <jerome.gardou@reactos.org>
Wed, 3 Feb 2021 08:41:21 +0000 (09:41 +0100)
We will use the more recent SECTION (already used in ARM3) and this will avoid confusions

ntoskrnl/mm/ARM3/section.c
ntoskrnl/ps/process.c
sdk/include/ndk/mmtypes.h

index 02ead9a..fe7e8b4 100644 (file)
@@ -1700,7 +1700,7 @@ PFILE_OBJECT
 NTAPI
 MmGetFileObjectForSection(IN PVOID SectionObject)
 {
-    PSECTION_OBJECT Section;
+    PSECTION Section;
     ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);
     ASSERT(SectionObject != NULL);
 
@@ -1773,7 +1773,7 @@ VOID
 NTAPI
 MmGetImageInformation (OUT PSECTION_IMAGE_INFORMATION ImageInformation)
 {
-    PSECTION_OBJECT SectionObject;
+    PSECTION SectionObject;
 
     /* Get the section object of this process*/
     SectionObject = PsGetCurrentProcess()->SectionObject;
index 179fd1d..0e6f112 100644 (file)
@@ -358,7 +358,7 @@ PspCreateProcess(OUT PHANDLE ProcessHandle,
     PEPROCESS Process, Parent;
     PVOID ExceptionPortObject;
     PDEBUG_OBJECT DebugObject;
-    PSECTION_OBJECT SectionObject;
+    PSECTION SectionObject;
     NTSTATUS Status, AccessStatus;
     ULONG_PTR DirectoryTableBase[2] = {0,0};
     KAFFINITY Affinity;
index ca62ebd..3e9fabf 100644 (file)
@@ -623,19 +623,6 @@ typedef struct _SEGMENT_OBJECT
     PMMSUBSECTION_FLAGS MmSubSectionFlags;
 } SEGMENT_OBJECT, *PSEGMENT_OBJECT;
 
-//
-// Section Object
-//
-typedef struct _SECTION_OBJECT
-{
-    PVOID StartingVa;
-    PVOID EndingVa;
-    PVOID Parent;
-    PVOID LeftChild;
-    PVOID RightChild;
-    PSEGMENT_OBJECT Segment;
-} SECTION_OBJECT, *PSECTION_OBJECT;
-
 //
 // Generic Address Range Structure
 //