- correct log message that said read_toc was returning 0. No. It returns 1.

This commit is contained in:
Bryce Denney 2001-10-07 03:37:02 +00:00
parent 5012a2ba85
commit 2283627565
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: cdrom.cc,v 1.22 2001-10-07 03:34:54 bdenney Exp $
// $Id: cdrom.cc,v 1.23 2001-10-07 03:37:02 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -197,7 +197,7 @@ cdrom_interface::cdrom_interface(char *dev)
}
void
cdrom_interface::init(void) {
BX_DEBUG(("Init $Id: cdrom.cc,v 1.22 2001-10-07 03:34:54 bdenney Exp $"));
BX_DEBUG(("Init $Id: cdrom.cc,v 1.23 2001-10-07 03:37:02 bdenney Exp $"));
BX_INFO(("file = '%s'",path));
}
@ -393,13 +393,13 @@ cdrom_interface::read_toc(uint8* buf, int* length, bool msf, int start_track)
#define IOCTL_CDROM_READ_TOC CTL_CODE(IOCTL_CDROM_BASE, 0x0000, METHOD_BUFFERED, FILE_READ_ACCESS)
unsigned long iBytesReturned;
DeviceIoControl(hFile, IOCTL_CDROM_READ_TOC, NULL, 0, NULL, 0, &iBytesReturned, NULL); */
BX_ERROR (("WARNING: read_toc is not implemented, just returning 0"));
BX_ERROR (("WARNING: read_toc is not implemented, just returning length=1"));
*length = 1;
return true;
}
#elif __linux__ || defined(__sun)
if (using_file) {
BX_ERROR (("WARNING: read_toc is not implemented, just returning 0"));
BX_ERROR (("WARNING: read_toc is not implemented, just returning length=1"));
*length = 1;
return true;
} else {