Explorar o código

hle: kernel: svc: UnmapProcessCodeMemory: Fix inverted alignment check.

bunnei %!s(int64=4) %!d(string=hai) anos
pai
achega
4e2401c11a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/svc.cpp

+ 1 - 1
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;
     }