summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-06 15:12:58 +0200
committerGitHub <noreply@github.com>2023-09-06 15:12:58 +0200
commit5e424d791bd98c18a81a36405a419237abcc8116 (patch)
treedd83795955a607612d27f324bdb1bfab63de2c38 /src/core/hle/kernel
parentMerge pull request #11437 from liamwhite/dump-shenanigans (diff)
parentmsvc: set warning level to /W4 globally (diff)
downloadyuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar.gz
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar.bz2
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar.lz
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar.xz
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.tar.zst
yuzu-5e424d791bd98c18a81a36405a419237abcc8116.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_capabilities.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp
index 90e4e8fb0..e7da7a21d 100644
--- a/src/core/hle/kernel/k_capabilities.cpp
+++ b/src/core/hle/kernel/k_capabilities.cpp
@@ -156,7 +156,6 @@ Result KCapabilities::MapIoPage_(const u32 cap, KPageTable* page_table) {
const u64 phys_addr = MapIoPage{cap}.address.Value() * PageSize;
const size_t num_pages = 1;
const size_t size = num_pages * PageSize;
- R_UNLESS(num_pages != 0, ResultInvalidSize);
R_UNLESS(phys_addr < phys_addr + size, ResultInvalidAddress);
R_UNLESS(((phys_addr + size - 1) & ~PhysicalMapAllowedMask) == 0, ResultInvalidAddress);