From c4d64a0501c0f3805ced2883378f3b8ebf1c8e3b Mon Sep 17 00:00:00 2001 From: Gliniak Date: Thu, 30 Dec 2021 18:17:48 +0100 Subject: [PATCH] QueryRegionInfo: Adjust allocation_base to contain heap address --- src/xenia/memory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index c7494e9fa..1e342dfc9 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -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;