summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-26 09:01:55 +0100
committerbunnei <bunneidev@gmail.com>2022-03-26 09:01:55 +0100
commit4e2401c11a4ecb4050001d2807a3b57b56674b5d (patch)
tree1b626c0e9e5586c977187b8879f01a4d2a378cfd
parentMerge pull request #8041 from Morph1984/inline-swkbd (diff)
downloadyuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar.gz
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar.bz2
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar.lz
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar.xz
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.tar.zst
yuzu-4e2401c11a4ecb4050001d2807a3b57b56674b5d.zip
-rw-r--r--src/core/hle/kernel/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 839171e85..3daac6747 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1664,7 +1664,7 @@ static ResultCode UnmapProcessCodeMemory(Core::System& system, Handle process_ha
return ResultInvalidAddress;
}
- if (size == 0 || Common::Is4KBAligned(size)) {
+ if (size == 0 || !Common::Is4KBAligned(size)) {
LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size);
return ResultInvalidSize;
}