Small bugfix in cdrom.c, should fix ATAPI PIO sector reading again.
This commit is contained in:
@@ -2564,7 +2564,17 @@ cdrom_readtoc_fallback:
|
||||
return;
|
||||
}
|
||||
|
||||
if (cdrom_current_mode(id) == 2)
|
||||
{
|
||||
cdrom[id].requested_blocks = max_len;
|
||||
cdrom[id].packet_len = alloc_length;
|
||||
}
|
||||
else
|
||||
{
|
||||
cdrom[id].requested_blocks = 1;
|
||||
cdrom[id].packet_len = max_len * alloc_length;
|
||||
}
|
||||
|
||||
cdrom_set_buf_len(id, BufLen, &cdrom[id].packet_len);
|
||||
|
||||
if (cdrom[id].requested_blocks > 1)
|
||||
|
||||
Reference in New Issue
Block a user