mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 17:22:46 +01:00
svc: Fix typos in sanitizing checks for MapMemory/UnmapMemory
This commit is contained in:
parent
9bf409f275
commit
4ccf30dfaa
1 changed files with 3 additions and 3 deletions
|
@ -95,12 +95,12 @@ ResultCode MapUnmapMemorySanityChecks(const VMManager& vm_manager, VAddr dst_add
|
||||||
|
|
||||||
const VAddr dst_end_address = dst_addr + size;
|
const VAddr dst_end_address = dst_addr + size;
|
||||||
if (dst_end_address > vm_manager.GetHeapRegionBaseAddress() &&
|
if (dst_end_address > vm_manager.GetHeapRegionBaseAddress() &&
|
||||||
dst_addr < vm_manager.GetHeapRegionEndAddress()) {
|
vm_manager.GetHeapRegionEndAddress() > dst_addr) {
|
||||||
return ERR_INVALID_MEMORY_RANGE;
|
return ERR_INVALID_MEMORY_RANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dst_end_address > vm_manager.GetNewMapRegionBaseAddress() &&
|
if (dst_end_address > vm_manager.GetMapRegionBaseAddress() &&
|
||||||
dst_addr < vm_manager.GetMapRegionEndAddress()) {
|
vm_manager.GetMapRegionEndAddress() > dst_addr) {
|
||||||
return ERR_INVALID_MEMORY_RANGE;
|
return ERR_INVALID_MEMORY_RANGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue