summaryrefslogtreecommitdiff
path: root/lib/cdreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cdreader.cpp')
-rw-r--r--lib/cdreader.cpp6
1 files changed, 6 insertions, 0 deletions
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");
}