error checks to trace https://sourceforge.net/tracker/index.php?func=detail&aid=1035264&group_id=37892&atid=421366
fix error message
This commit is contained in:
@@ -372,7 +372,9 @@ int RageFileObjDirect::Seek( int offset )
|
||||
int RageFileObjDirect::GetFileSize()
|
||||
{
|
||||
const int OldPos = lseek( fd, 0, SEEK_CUR );
|
||||
ASSERT_M( OldPos != -1, strerror(errno) ):
|
||||
const int ret = lseek( fd, 0, SEEK_END );
|
||||
ASSERT_M( ret!= -1, strerror(errno) ):
|
||||
lseek( fd, OldPos, SEEK_SET );
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user