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
|
RageFileBasic *Copy() const
|
||||||
{
|
{
|
||||||
CString sError;
|
CString sError;
|
||||||
RageFileBasic *pRet = m_pWorker->Copy( m_pFile, sError );
|
RageFileBasic *pCopy = m_pWorker->Copy( m_pFile, sError );
|
||||||
|
|
||||||
if( m_pFile == NULL )
|
if( m_pFile == NULL )
|
||||||
{
|
{
|
||||||
@@ -639,13 +639,13 @@ public:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pRet == NULL )
|
if( pCopy == NULL )
|
||||||
{
|
{
|
||||||
// SetError( sError );
|
// SetError( sError );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pRet;
|
return new RageFileObjTimeout( m_pWorker, pCopy, m_iFileSize );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user