From 75d7b15236bb21d97802ecb12c41d00f0dbf3b53 Mon Sep 17 00:00:00 2001 From: Enrico Horn Date: Tue, 4 Mar 2003 02:15:19 +0000 Subject: [PATCH] Simple way to get the label of mixed-mode cd. --- files/drive.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/files/drive.c b/files/drive.c index 4ca9a284217..5d9dbf6d4b1 100644 --- a/files/drive.c +++ b/files/drive.c @@ -820,8 +820,13 @@ static DWORD CDROM_GetLabel(int drive, WCHAR *label) break; } case CDROM_DISK_DATA_TRACK|CDROM_DISK_AUDIO_TRACK: - FIXME("Need to get the label of a mixed mode CD: not implemented yet !\n"); - /* fall through */ + FIXME("Need to get the label of a mixed mode CD!\n"); + /* 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: ret = 0; break;