Permalink
Browse files

Added a check to the pointer for memcpy

This check enables the newer builds of daedalus to run.
  • Loading branch information...
z2442 committed Jan 5, 2019
1 parent 99c8423 commit e5b75dc294d9a194baec3326fcc332b0a3b7759c
Showing with 3 additions and 1 deletion.
  1. +3 −1 Core/HLE/sceKernelInterrupt.cpp
@@ -684,7 +684,9 @@ const HLEFunction Kernel_Library[] =

static u32 sysclib_memcpy(u32 dst, u32 src, u32 size) {
ERROR_LOG(SCEKERNEL, "Untested sysclib_memcpy(dest=%08x, src=%08x, size=%i)", dst, src, size);
memcpy(Memory::GetPointer(dst), Memory::GetPointer(src), size);
if (Memory::IsValidRange(dst, size) && Memory::IsValidRange(src, size)) {
memcpy(Memory::GetPointer(dst), Memory::GetPointer(src), size);
}
return dst;
}

0 comments on commit e5b75dc

Please sign in to comment.