From 9f4bc95bd406adecf8803b455cb20e79f3cccadb Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 12 Oct 2003 13:51:09 +0000 Subject: Some minor fixes and improvements --- lib/cdreader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/cdreader.cpp') diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 5e88e98..bb785cf 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -168,6 +168,12 @@ void cdreader::getsector(void *buf, int sec) throw (GeneralException) { buf, 2352, &dwRet, NULL); if (!bStat) { DWORD dwErrCode = GetLastError(); + if (dwErrCode == ERROR_INVALID_FUNCTION) { + if (rawIOCTL.TrackMode == YellowMode2) { + rawIOCTL.TrackMode = XAForm2; + continue; + } + } if (dwErrCode != ERROR_IO_PENDING) { throw GeneralException("Gave up on reading CD"); } -- cgit v1.2.3