win32.c: was not indicating a failure when reading the TOC failed.

testparanoia.c: better check that there are drives.
device.c: I think better checking on drive capability. At least we now
	check for the TOC failure case and not add a drive there.
This commit is contained in:
rocky
2005-01-14 19:25:45 +00:00
parent 78c0817acb
commit 15483ee573
3 changed files with 34 additions and 31 deletions

View File

@@ -66,7 +66,7 @@ main(int argc, const char *argv[])
ppsz_cd_drives = cdio_get_devices_with_cap_ret(NULL, CDIO_FS_AUDIO, false,
&driver_id);
if (ppsz_cd_drives) {
if (ppsz_cd_drives && *ppsz_cd_drives) {
/* Found such a CD-ROM with a CD-DA loaded. Use the first drive in
the list. */
d=cdda_identify(*ppsz_cd_drives, 1, NULL);