CDDA, stop returning error status as a float
It is a bit unorthodox, and we expect a number on how well you can handle the partition. Change-Id: Ie1b5d4e0a8e2411f9782957d7f124756f992a086 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3805 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -1392,7 +1392,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie)
|
||||
{
|
||||
scsi_toc_toc* toc = (scsi_toc_toc*)malloc(2048);
|
||||
if (toc == NULL)
|
||||
return B_NO_MEMORY;
|
||||
return -1;
|
||||
|
||||
status_t status = read_table_of_contents(fd, toc, 2048);
|
||||
|
||||
@@ -1432,7 +1432,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie)
|
||||
|
||||
if (status != B_OK) {
|
||||
free(toc);
|
||||
return status;
|
||||
return -1;
|
||||
}
|
||||
|
||||
*_cookie = toc;
|
||||
|
||||
Reference in New Issue
Block a user