[Memory] Fix incorrect comparison in QueryRangeAccess

This commit is contained in:
Triang3l 2020-02-22 18:12:46 +03:00
parent 1e9f999b37
commit d156c3275d
1 changed files with 1 additions and 1 deletions

View File

@ -1299,7 +1299,7 @@ bool BaseHeap::QueryProtect(uint32_t address, uint32_t* out_protect) {
xe::memory::PageAccess BaseHeap::QueryRangeAccess(uint32_t low_address,
uint32_t high_address) {
if (low_address >= high_address || low_address < heap_base_ ||
if (low_address > high_address || low_address < heap_base_ ||
(high_address - heap_base_) >= heap_size_) {
return xe::memory::PageAccess::kNoAccess;
}