mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 10:20:49 +00:00
Added a check to the pointer for memcpy
This check enables the newer builds of daedalus to run.
This commit is contained in:
parent
99c8423ede
commit
e5b75dc294
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user