mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05:00
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:
parent
ea84a81886
commit
e39a04ee7f
@ -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)
|
||||
{
|
||||
|
@ -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) ;
|
||||
|
||||
|
@ -303,14 +303,14 @@ bool RsDirUtil::copyFile(const std::string& source,const std::string& dest)
|
||||
return (CopyFileW(sourceW.c_str(), destW.c_str(), FALSE) != 0);
|
||||
|
||||
#else
|
||||
FILE *in = fopen(source.c_str(),"rb") ;
|
||||
FILE *in = fopen64(source.c_str(),"rb") ;
|
||||
|
||||
if(in == NULL)
|
||||
{
|
||||
return false ;
|
||||
}
|
||||
|
||||
FILE *out = fopen(dest.c_str(),"wb") ;
|
||||
FILE *out = fopen64(dest.c_str(),"wb") ;
|
||||
|
||||
if(out == NULL)
|
||||
{
|
||||
@ -994,7 +994,7 @@ bool RsDirUtil::getWideFileHash(std::wstring filepath,
|
||||
/***** XXX TO MAKE WIDE SYSTEM CALL ******************************************************/
|
||||
std::string fp(filepath.begin(), filepath.end());
|
||||
|
||||
if (NULL == (fd = fopen(fp.c_str(), "rb")))
|
||||
if (NULL == (fd = fopen64(fp.c_str(), "rb")))
|
||||
return false;
|
||||
|
||||
/***** XXX TO MAKE WIDE SYSTEM CALL ******************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user