last fix to missing ftello64 calls (hopefully)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4057 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-02-24 22:44:41 +00:00
parent ea84a81886
commit e39a04ee7f
3 changed files with 5 additions and 5 deletions

View file

@ -432,7 +432,7 @@ bool ftExtraList::loadList(std::list<RsItem *>& load)
librs::util::ConvertUtf8ToUtf16(fi->file.path, filepathW);
FILE *fd = _wfopen(filepathW.c_str(), L"rb");
#else
FILE *fd = fopen(fi->file.path.c_str(), "rb");
FILE *fd = fopen64(fi->file.path.c_str(), "rb");
#endif
if (fd == NULL)
{

View file

@ -539,7 +539,7 @@ bool ftFileCreator::crossCheckChunkMap(const CRC32Map& ref,uint32_t& bad_chunks,
printf(" Chunk %05d/%05d:",i,nb_chunks) ;
if(map[i])
{
if(fseek(fd,(uint64_t)i * (uint64_t)chunk_size,SEEK_SET)==0 && (len = fread(buff,1,chunk_size,fd)) > 0)
if(fseeko64(fd,(uint64_t)i * (uint64_t)chunk_size,SEEK_SET)==0 && (len = fread(buff,1,chunk_size,fd)) > 0)
{
uint32_t crc = RsDirUtil::rs_CRC32(buff,len) ;