This commit is contained in:
Henrik Rydgard committed 2015-01-11 00:35:43 +01:00
1 parent 2cc1bd327a
commit 222802524c
1 file changed
+3 -1
+3 -1
View File
@@ -107,8 +107,10 @@ static int Replace_memcpy() {
u32 srcPtr = PARAM(1);
u32 bytes = PARAM(2);
bool skip = false;
if (!bytes)
if (!bytes) {
RETURN(destPtr);
return 10;
}
// Some games use memcpy on executable code. We need to flush emuhack ops.
currentMIPS->InvalidateICache(srcPtr, bytes);