summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-13 02:46:55 +0200
committerGitHub <noreply@github.com>2018-10-13 02:46:55 +0200
commitffcda6c08ef9cc543b1d2caf9461e15d705b742a (patch)
treee6fd2350429147537309fcd47e1e60902b4dd305 /src
parentMerge pull request #1467 from ogniK5377/svcbreak-type-fix (diff)
parentsvc: Fix typos in sanitizing checks for MapMemory/UnmapMemory (diff)
downloadyuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar.gz
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar.bz2
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar.lz
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar.xz
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.tar.zst
yuzu-ffcda6c08ef9cc543b1d2caf9461e15d705b742a.zip
Diffstat (limited to 'src')
-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 863ecfa74..e406df829 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;
}