remove unneeded seek
This commit is contained in:
@@ -96,10 +96,8 @@ unsigned int RageFileStore::CopyRangeTo2(BufferedTransformation &target, unsigne
|
|||||||
int newPosition = current + (streamoff)begin;
|
int newPosition = current + (streamoff)begin;
|
||||||
|
|
||||||
if( newPosition >= m_file.GetFileSize() )
|
if( newPosition >= m_file.GetFileSize() )
|
||||||
{
|
|
||||||
m_file.Seek(current);
|
|
||||||
return 0; // don't try to seek beyond the end of file
|
return 0; // don't try to seek beyond the end of file
|
||||||
}
|
|
||||||
m_file.Seek(newPosition);
|
m_file.Seek(newPosition);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user