mirror of
https://github.com/reactos/reactos.git
synced 2025-05-14 23:03:53 +00:00
- NtFreeVirtualMemory: Pass RegionListHead from SectionData vice VirtualMemoryData to MmAlterRegion
for MemoryArea->Type of Section view. Fixes MapViewOfFile tests for kernel32_winetests. More investigation is needed on whether this function should even succeed on FileMapping Objects. svn path=/trunk/; revision=40833
This commit is contained in:
parent
8e4c1cabb7
commit
c02e2cb416
1 changed files with 3 additions and 1 deletions
|
@ -1003,7 +1003,9 @@ NtFreeVirtualMemory(IN HANDLE ProcessHandle,
|
||||||
Status =
|
Status =
|
||||||
MmAlterRegion(AddressSpace,
|
MmAlterRegion(AddressSpace,
|
||||||
MemoryArea->StartingAddress,
|
MemoryArea->StartingAddress,
|
||||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW) ?
|
||||||
|
&MemoryArea->Data.SectionData.RegionListHead :
|
||||||
|
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||||
BaseAddress,
|
BaseAddress,
|
||||||
RegionSize,
|
RegionSize,
|
||||||
MEM_RESERVE,
|
MEM_RESERVE,
|
||||||
|
|
Loading…
Reference in a new issue