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:
skidau 2015-05-22 05:34:05 +00:00
parent f7f73f1e53
commit f714e5f2c4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}