Fix infinite loop with some NES ROMs

This commit is contained in:
Andre Leiradella 2016-11-27 01:01:23 +00:00
parent a09ad05a76
commit 1b7f1f30d9

View File

@ -2335,7 +2335,12 @@ static size_t cheevos_eval_md5(
size += num_read;
if (max_size != 0)
{
max_size -= num_read;
if (max_size == 0)
break;
}
}
filestream_close(file);