Fixed the cheat list size check for GB games.
This commit is contained in:
parent
6d964a523f
commit
fec1c7b770
|
@ -162,7 +162,7 @@ bool gbCheatsLoadCheatList(const char *file)
|
|||
return false;
|
||||
}
|
||||
|
||||
if(fread(gbCheatList, 1, sizeof(gbCheatList), f) != sizeof(gbCheatList)) {
|
||||
if(fread(gbCheatList, 1, sizeof(gbCheatList), f) > sizeof(gbCheatList)) {
|
||||
fclose(f);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue