mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 03:00:14 +00:00
memcmp instead of strcmp
This commit is contained in:
parent
e7862bc7a2
commit
d5781d39f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user