fix RageFileObjTimeout::Copy returns a copy of the underlying object, instead of a copied RageFileObjTimeout
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user