Fixed the cheat list size check for GB games.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1470 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
f7f73f1e53
commit
f714e5f2c4
|
@ -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