diff options
author | pixel <pixel> | 2003-10-12 13:51:09 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-10-12 13:51:09 +0000 |
commit | 9f4bc95bd406adecf8803b455cb20e79f3cccadb (patch) | |
tree | 16196fc7e196ae8b794a8534dfadfd23bf9b05a5 /lib/cdreader.cpp | |
parent | 7787631c6ee37a489732c95cb0864422e3a3bdd1 (diff) |
Some minor fixes and improvements
Diffstat (limited to 'lib/cdreader.cpp')
-rw-r--r-- | lib/cdreader.cpp | 6 |
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");
}
|