mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user