ntdll: Use pagesize alignment if MEM_REPLACE_PLACEHOLDER is set in flags of NtMapViewOfSection(Ex).
This commit is contained in:
parent
f5c00e3870
commit
2f88259a44
1 changed files with 6 additions and 0 deletions
|
@ -5466,6 +5466,9 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
|
|||
}
|
||||
#endif
|
||||
|
||||
if (alloc_type & MEM_REPLACE_PLACEHOLDER)
|
||||
mask = page_mask;
|
||||
|
||||
if ((offset.u.LowPart & mask) || (*addr_ptr && ((UINT_PTR)*addr_ptr & mask)))
|
||||
return STATUS_MAPPED_ALIGNMENT;
|
||||
|
||||
|
@ -5535,6 +5538,9 @@ NTSTATUS WINAPI NtMapViewOfSectionEx( HANDLE handle, HANDLE process, PVOID *addr
|
|||
}
|
||||
#endif
|
||||
|
||||
if (alloc_type & MEM_REPLACE_PLACEHOLDER)
|
||||
mask = page_mask;
|
||||
|
||||
if ((offset.u.LowPart & mask) || (*addr_ptr && ((UINT_PTR)*addr_ptr & mask)))
|
||||
return STATUS_MAPPED_ALIGNMENT;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue