This commit is contained in:
Glenn Maynard
2004-09-01 23:12:20 +00:00
parent 312faa6c72
commit 5e41e72e51
+4
View File
@@ -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
{