Fixed the cheat list size check for GB games.

This commit is contained in:
skidau 2015-05-22 05:34:05 +00:00
parent 6d964a523f
commit fec1c7b770
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ bool gbCheatsLoadCheatList(const char *file)
return false; return false;
} }
if(fread(gbCheatList, 1, sizeof(gbCheatList), f) != sizeof(gbCheatList)) { if(fread(gbCheatList, 1, sizeof(gbCheatList), f) > sizeof(gbCheatList)) {
fclose(f); fclose(f);
return false; return false;
} }