summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-12 07:43:15 +0200
committerLioncash <mathew1800@gmail.com>2018-10-12 07:48:26 +0200
commit4ccf30dfaafaeed6f2520066bcfdf898023fd812 (patch)
tree3c280e8858b2ed6e57f839dc697613d5174c1969 /src/core/hle/kernel/svc.cpp
parentMerge pull request #1474 from ogniK5377/hwopus-decodeinterleavedwithperformance (diff)
downloadyuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar.gz
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar.bz2
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar.lz
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar.xz
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.tar.zst
yuzu-4ccf30dfaafaeed6f2520066bcfdf898023fd812.zip
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 3e4dd61dc..0b12d5ae9 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -95,12 +95,12 @@ ResultCode MapUnmapMemorySanityChecks(const VMManager& vm_manager, VAddr dst_add
const VAddr dst_end_address = dst_addr + size;
if (dst_end_address > vm_manager.GetHeapRegionBaseAddress() &&
- dst_addr < vm_manager.GetHeapRegionEndAddress()) {
+ vm_manager.GetHeapRegionEndAddress() > dst_addr) {
return ERR_INVALID_MEMORY_RANGE;
}
- if (dst_end_address > vm_manager.GetNewMapRegionBaseAddress() &&
- dst_addr < vm_manager.GetMapRegionEndAddress()) {
+ if (dst_end_address > vm_manager.GetMapRegionBaseAddress() &&
+ vm_manager.GetMapRegionEndAddress() > dst_addr) {
return ERR_INVALID_MEMORY_RANGE;
}