This commit is contained in:
Glenn Maynard
2005-12-06 17:07:21 +00:00
parent 8ab36ad2a0
commit dff9a680b5
+4 -3
View File
@@ -273,10 +273,11 @@ RageFileObjDirect::~RageFileObjDirect()
} }
} }
if( !(m_iMode & RageFile::WRITE) || (m_iMode & RageFile::STREAMED) )
return;
/* If we failed to flush the file properly, something's amiss--don't touch the original file! */ /* If we failed to flush the file properly, something's amiss--don't touch the original file! */
if( !failed && if( !failed )
(m_iMode & RageFile::WRITE) &&
!(m_iMode & RageFile::STREAMED) )
{ {
/* /*
* We now have path written to MakeTempFilename(m_sPath). Rename the temporary * We now have path written to MakeTempFilename(m_sPath). Rename the temporary