fix seeking in long files on Unix
This commit is contained in:
parent
b85b1390ac
commit
10d4208a7f
|
@ -172,7 +172,7 @@ hlULongLong CFileStream::GetStreamPointer() const
|
||||||
LARGE_INTEGER liPointer;
|
LARGE_INTEGER liPointer;
|
||||||
return SetFilePointerEx(this->hFile, liOffset, &liPointer, FILE_CURRENT) ? static_cast<hlULongLong>(liPointer.QuadPart) : 0;
|
return SetFilePointerEx(this->hFile, liOffset, &liPointer, FILE_CURRENT) ? static_cast<hlULongLong>(liPointer.QuadPart) : 0;
|
||||||
#else
|
#else
|
||||||
return (hlUInt)lseek(this->iFile, 0, SEEK_CUR);
|
return (hlULongLong)lseek(this->iFile, 0, SEEK_CUR);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ hlULongLong CFileStream::Seek(hlLongLong iOffset, HLSeekMode eSeekMode)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (hlUInt)lseek(this->iFile, iOffset, iMode);
|
return (hlULongLong)lseek(this->iFile, iOffset, iMode);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue