mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #6248 from sum2012/Replace-table
Fix Replace_memcpy crash
This commit is contained in:
commit
e69130b591
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ static int Replace_memcpy() {
|
|||
if (Memory::IsVRAMAddress(destPtr) || Memory::IsVRAMAddress(srcPtr)) {
|
||||
skip = gpu->PerformMemoryCopy(destPtr, srcPtr, bytes);
|
||||
}
|
||||
if (!skip && bytes != 0) {
|
||||
if (!skip && bytes != 0 && destPtr != 0) {
|
||||
u8 *dst = Memory::GetPointerUnchecked(destPtr);
|
||||
const u8 *src = Memory::GetPointerUnchecked(srcPtr);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue