Merge pull request #2171 from aliaspider/master

(PS1) serial lookup: improve error detection.
This commit is contained in:
Twinaphex 2015-09-26 03:12:19 +02:00
commit abb6bc87e4

View File

@ -178,6 +178,8 @@ static int detect_ps1_game_sub(const char *track_path, char *game_id, int sub_ch
tmp += *tmp;
}
if(tmp >= (buffer + 2048 * 2))
return 0;
cd_sector = tmp[2] | (tmp[3] << 8) | (tmp[4] << 16);
retro_fseek(fp, 13 + skip + cd_sector * frame_size, SEEK_SET);