QueryRegionInfo: Adjust allocation_base to contain heap address

This commit is contained in:
Gliniak 2021-12-30 18:17:48 +01:00
parent ec976cdd33
commit c4d64a0501
1 changed files with 2 additions and 1 deletions

View File

@ -1254,7 +1254,8 @@ bool BaseHeap::QueryRegionInfo(uint32_t base_address,
out_info->protect = 0;
if (start_page_entry.state) {
// Committed/reserved region.
out_info->allocation_base = start_page_entry.base_address * page_size_;
out_info->allocation_base =
heap_base_ + start_page_entry.base_address * page_size_;
out_info->allocation_protect = start_page_entry.allocation_protect;
out_info->allocation_size = start_page_entry.region_page_count * page_size_;
out_info->state = start_page_entry.state;