[ros-diffs] [sir_richard] 48198: [NTOS]: Stop handling a bunch of MEMORY_AREA_TYPEs that aren't used anymore.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Thu Jul 22 20:46:49 UTC 2010


Author: sir_richard
Date: Thu Jul 22 20:46:49 2010
New Revision: 48198

URL: http://svn.reactos.org/svn/reactos?rev=48198&view=rev
Log:
[NTOS]: Stop handling a bunch of MEMORY_AREA_TYPEs that aren't used anymore.

Modified:
    trunk/reactos/ntoskrnl/mm/virtual.c

Modified: trunk/reactos/ntoskrnl/mm/virtual.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/virtual.c?rev=48198&r1=48197&r2=48198&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] Thu Jul 22 20:46:49 2010
@@ -75,7 +75,6 @@
                 switch(MemoryArea->Type)
                 {
                     case MEMORY_AREA_VIRTUAL_MEMORY:
-                    case MEMORY_AREA_PEB_OR_TEB:
                         Status = MmQueryAnonMem(MemoryArea, Address, Info,
                                                 ResultLength);
                         break;
@@ -83,71 +82,6 @@
                     case MEMORY_AREA_SECTION_VIEW:
                         Status = MmQuerySectionView(MemoryArea, Address, Info,
                                                     ResultLength);
-                        break;
-
-                    case MEMORY_AREA_NO_ACCESS:
-                        Info->Type = MEM_PRIVATE;
-                        Info->State = MEM_RESERVE;
-                        Info->Protect = MemoryArea->Protect;
-                        Info->AllocationProtect = MemoryArea->Protect;
-                        Info->BaseAddress = MemoryArea->StartingAddress;
-                        Info->AllocationBase = MemoryArea->StartingAddress;
-                        Info->RegionSize = (ULONG_PTR)MemoryArea->EndingAddress -
-                                           (ULONG_PTR)MemoryArea->StartingAddress;
-                        Status = STATUS_SUCCESS;
-                        *ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
-                        break;
-
-                    case MEMORY_AREA_SHARED_DATA:
-                        Info->Type = MEM_PRIVATE;
-                        Info->State = MEM_COMMIT;
-                        Info->Protect = MemoryArea->Protect;
-                        Info->AllocationProtect = MemoryArea->Protect;
-                        Info->BaseAddress = MemoryArea->StartingAddress;
-                        Info->AllocationBase = MemoryArea->StartingAddress;
-                        Info->RegionSize = (ULONG_PTR)MemoryArea->EndingAddress -
-                                           (ULONG_PTR)MemoryArea->StartingAddress;
-                        Status = STATUS_SUCCESS;
-                        *ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
-                        break;
-
-                    case MEMORY_AREA_SYSTEM:
-                        Info->Type = 0;
-                        Info->State = MEM_COMMIT;
-                        Info->Protect = MemoryArea->Protect;
-                        Info->AllocationProtect = MemoryArea->Protect;
-                        Info->BaseAddress = MemoryArea->StartingAddress;
-                        Info->AllocationBase = MemoryArea->StartingAddress;
-                        Info->RegionSize = (ULONG_PTR)MemoryArea->EndingAddress -
-                                           (ULONG_PTR)MemoryArea->StartingAddress;
-                        Status = STATUS_SUCCESS;
-                        *ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
-                        break;
-
-                    case MEMORY_AREA_KERNEL_STACK:
-                        Info->Type = 0;
-                        Info->State = MEM_COMMIT;
-                        Info->Protect = MemoryArea->Protect;
-                        Info->AllocationProtect = MemoryArea->Protect;
-                        Info->BaseAddress = MemoryArea->StartingAddress;
-                        Info->AllocationBase = MemoryArea->StartingAddress;
-                        Info->RegionSize = (ULONG_PTR)MemoryArea->EndingAddress -
-                                           (ULONG_PTR)MemoryArea->StartingAddress;
-                        Status = STATUS_SUCCESS;
-                        *ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
-                        break;
-
-                    case MEMORY_AREA_PAGED_POOL:
-                        Info->Type = 0;
-                        Info->State = MEM_COMMIT;
-                        Info->Protect = MemoryArea->Protect;
-                        Info->AllocationProtect = MemoryArea->Protect;
-                        Info->BaseAddress = MemoryArea->StartingAddress;
-                        Info->AllocationBase = MemoryArea->StartingAddress;
-                        Info->RegionSize = (ULONG_PTR)MemoryArea->EndingAddress -
-                                           (ULONG_PTR)MemoryArea->StartingAddress;
-                        Status = STATUS_SUCCESS;
-                        *ResultLength = sizeof(MEMORY_BASIC_INFORMATION);
                         break;
 
                     default:




More information about the Ros-diffs mailing list