Browse Source

logs and hacks

pull/2858/head
JPikachu 3 months ago
committed by crueter
parent
commit
2bca9455b1
  1. 6
      src/core/hle/kernel/svc/svc_process_memory.cpp

6
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);
}

Loading…
Cancel
Save