diff --git a/src/core/hle/kernel/svc/svc_process_memory.cpp b/src/core/hle/kernel/svc/svc_process_memory.cpp index 28ba2020bc..290ce96a29 100644 --- a/src/core/hle/kernel/svc/svc_process_memory.cpp +++ b/src/core/hle/kernel/svc/svc_process_memory.cpp @@ -158,7 +158,8 @@ Result MapProcessCodeMemory(Core::System& system, Handle process_handle, u64 dst R_THROW(ResultInvalidAddress); } - if (size == 0 || !Common::Is4KBAligned(size)) { + // "size == 0 ||" removed for the workaround, temp. (DO NOT MERGE) + if (!Common::Is4KBAligned(size)) { LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X})", size); R_THROW(ResultInvalidSize); } @@ -224,7 +225,8 @@ Result UnmapProcessCodeMemory(Core::System& system, Handle process_handle, u64 d R_THROW(ResultInvalidAddress); } - if (size == 0 || !Common::Is4KBAligned(size)) { + // "size == 0 ||" removed for the workaround, temp. (DO NOT MERGE) + if (!Common::Is4KBAligned(size)) { LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size); R_THROW(ResultInvalidSize); }