memory: Contains check is inclusive
This commit is contained in:
parent
8ccd93293c
commit
3b45003468
|
@ -89,7 +89,7 @@ struct VirtualMemoryArea {
|
|||
uintptr_t fd = 0;
|
||||
|
||||
bool Contains(VAddr addr, size_t size) const {
|
||||
return addr >= base && (addr + size) < (base + this->size);
|
||||
return addr >= base && (addr + size) <= (base + this->size);
|
||||
}
|
||||
|
||||
bool IsFree() const noexcept {
|
||||
|
|
Loading…
Reference in New Issue