From 5e41e72e51495ef05c4bcc531705b2dab382f939 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 1 Sep 2004 23:12:20 +0000 Subject: [PATCH] comment --- stepmania/src/RageFileDriverDirect.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index 7d8216212e..bb6d53bc8f 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -79,6 +79,10 @@ RageFileObj *MakeFileObjDirect( CString sPath, int mode, RageFile &p, int &err ) if( mode & RageFile::READ ) { fd = DoOpen( sPath, O_BINARY|O_RDONLY, 0644 ); + + /* XXX: Windows returns EACCES if we try to open a file on a CDROM that isn't + * ready, instead of something like ENODEV. We want to return that case as + * ENOENT, but we can't distinguish it from file permission errors. */ } else {