Simple way to get the label of mixed-mode cd.

This commit is contained in:
Enrico Horn 2003-03-04 02:15:19 +00:00 committed by Alexandre Julliard
parent 6dc4cb4b7a
commit 75d7b15236
1 changed files with 7 additions and 2 deletions

View File

@ -820,8 +820,13 @@ static DWORD CDROM_GetLabel(int drive, WCHAR *label)
break; break;
} }
case CDROM_DISK_DATA_TRACK|CDROM_DISK_AUDIO_TRACK: case CDROM_DISK_DATA_TRACK|CDROM_DISK_AUDIO_TRACK:
FIXME("Need to get the label of a mixed mode CD: not implemented yet !\n"); FIXME("Need to get the label of a mixed mode CD!\n");
/* fall through */ /* This assumes that the first track is a data track! */
/* I guess the correct way would be to enumerate all data tracks
and check each for the title */
if (!CDROM_Data_GetLabel(drive, label))
ret = 0;
break;
case 0: case 0:
ret = 0; ret = 0;
break; break;