fix error message
This commit is contained in:
Glenn Maynard
2004-10-06 04:25:27 +00:00
parent 322b40e1f6
commit 12c21c302c
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -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;
}