mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +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 =
|
||||
MmAlterRegion(AddressSpace,
|
||||
MemoryArea->StartingAddress,
|
||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||
(MemoryArea->Type == MEMORY_AREA_SECTION_VIEW) ?
|
||||
&MemoryArea->Data.SectionData.RegionListHead :
|
||||
&MemoryArea->Data.VirtualMemoryData.RegionListHead,
|
||||
BaseAddress,
|
||||
RegionSize,
|
||||
MEM_RESERVE,
|
||||
|
|
Loading…
Reference in a new issue