mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
(FORMATTING)
-Grrr, you stupid software svn path=/trunk/; revision=54367
This commit is contained in:
parent
0e2151927b
commit
90875550df
1 changed files with 85 additions and 88 deletions
|
@ -752,8 +752,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
if (MemoryArea->Type == MEMORY_AREA_VIRTUAL_MEMORY &&
|
if (MemoryArea->Type == MEMORY_AREA_VIRTUAL_MEMORY &&
|
||||||
MemoryAreaLength >= RegionSize)
|
MemoryAreaLength >= RegionSize)
|
||||||
{
|
{
|
||||||
Status =
|
Status = MmAlterRegion(AddressSpace,
|
||||||
MmAlterRegion(AddressSpace,
|
|
||||||
MemoryArea->StartingAddress,
|
MemoryArea->StartingAddress,
|
||||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||||
BaseAddress, RegionSize,
|
BaseAddress, RegionSize,
|
||||||
|
@ -778,8 +777,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
/* Region list initialized? */
|
/* Region list initialized? */
|
||||||
if (MemoryArea->Data.SectionData.RegionListHead.Flink)
|
if (MemoryArea->Data.SectionData.RegionListHead.Flink)
|
||||||
{
|
{
|
||||||
Status =
|
Status = MmAlterRegion(AddressSpace,
|
||||||
MmAlterRegion(AddressSpace,
|
|
||||||
MemoryArea->StartingAddress,
|
MemoryArea->StartingAddress,
|
||||||
&MemoryArea->Data.SectionData.RegionListHead,
|
&MemoryArea->Data.SectionData.RegionListHead,
|
||||||
BaseAddress, RegionSize,
|
BaseAddress, RegionSize,
|
||||||
|
@ -1092,8 +1090,7 @@ NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
goto unlock_deref_and_return;
|
goto unlock_deref_and_return;
|
||||||
|
|
||||||
case MEM_DECOMMIT:
|
case MEM_DECOMMIT:
|
||||||
Status =
|
Status = MmAlterRegion(AddressSpace,
|
||||||
MmAlterRegion(AddressSpace,
|
|
||||||
MemoryArea->StartingAddress,
|
MemoryArea->StartingAddress,
|
||||||
(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW) ?
|
(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW) ?
|
||||||
&MemoryArea->Data.SectionData.RegionListHead :
|
&MemoryArea->Data.SectionData.RegionListHead :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue