From d5781d39f9c7e32d1b31911e8814a4c87a4aa37c Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 25 Dec 2015 22:19:08 -0500 Subject: [PATCH] memcmp instead of strcmp --- src/core/hle/service/ldr_ro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/ldr_ro.cpp b/src/core/hle/service/ldr_ro.cpp index b77e3f65c..214c9262a 100644 --- a/src/core/hle/service/ldr_ro.cpp +++ b/src/core/hle/service/ldr_ro.cpp @@ -299,7 +299,7 @@ bool CROHeader::VerifyAndRelocateOffsets(u32 base, u32 size) { u32 end = base + size; // Error if the magic is invalid - if (strcmp(magic, "CRO0") != 0) + if (memcmp(magic, "CRO0", 4) != 0) return false; // If these values are set the game might be trying to load the same CRO multiple times