mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 08:52:41 +00:00
Merge pull request #2171 from aliaspider/master
(PS1) serial lookup: improve error detection.
This commit is contained in:
commit
abb6bc87e4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user