Fixed the cheat list size check.
This commit is contained in:
parent
1b60856e8d
commit
45c8b6a3d6
|
@ -2747,7 +2747,7 @@ bool cheatsLoadCheatList(const char *file)
|
||||||
}
|
}
|
||||||
if (type == 1)
|
if (type == 1)
|
||||||
{
|
{
|
||||||
if(fread(cheatsList, 1, sizeof(cheatsList), f) != sizeof(cheatsList)) {
|
if(fread(cheatsList, 1, sizeof(cheatsList), f) > sizeof(cheatsList)) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue