mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
win32 compatibility
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1095 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4ef56e1b79
commit
ef54d9d176
2 changed files with 10 additions and 5 deletions
|
@ -196,7 +196,7 @@ bool ftController::moveFile(const std::string& source,const std::string& dest)
|
|||
|
||||
static const int BUFF_SIZE = 10485760 ; // 10 MB buffer to speed things up.
|
||||
void *buffer = malloc(BUFF_SIZE) ;
|
||||
FILE *in = fopen(source.c_str(),"r") ;
|
||||
FILE *in = fopen(source.c_str(),"rb") ;
|
||||
|
||||
if(in == NULL)
|
||||
{
|
||||
|
@ -204,7 +204,7 @@ bool ftController::moveFile(const std::string& source,const std::string& dest)
|
|||
return false ;
|
||||
}
|
||||
|
||||
FILE *out = fopen(dest.c_str(),"w") ;
|
||||
FILE *out = fopen(dest.c_str(),"wb") ;
|
||||
|
||||
if(out == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue