fix RageFileObjTimeout::Copy returns a copy of the underlying object, instead of a copied RageFileObjTimeout

This commit is contained in:
Glenn Maynard
2005-05-21 08:56:08 +00:00
parent 4a64bca900
commit 82b7f71728
+3 -3
View File
@@ -631,7 +631,7 @@ public:
RageFileBasic *Copy() const
{
CString sError;
RageFileBasic *pRet = m_pWorker->Copy( m_pFile, sError );
RageFileBasic *pCopy = m_pWorker->Copy( m_pFile, sError );
if( m_pFile == NULL )
{
@@ -639,13 +639,13 @@ public:
return NULL;
}
if( pRet == NULL )
if( pCopy == NULL )
{
// SetError( sError );
return NULL;
}
return pRet;
return new RageFileObjTimeout( m_pWorker, pCopy, m_iFileSize );
}
protected: