fix file_pool to support new absolute paths in file_storage

This commit is contained in:
Arvid Norberg 2013-06-09 22:59:27 +00:00
parent 8f3723cdef
commit dd183c2116
1 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ namespace libtorrent
#else
e.file_ptr->close();
#endif
std::string full_path = combine_path(p, fs.file_path(*fe));
std::string full_path = fs.file_path(*fe, p);
if (!e.file_ptr->open(full_path, m, ec))
{
m_files.erase(i);
@ -244,7 +244,7 @@ namespace libtorrent
ec = error_code(ENOMEM, get_posix_category());
return e.file_ptr;
}
std::string full_path = combine_path(p, fs.file_path(*fe));
std::string full_path = fs.file_path(*fe, p);
if (!e.file_ptr->open(full_path, m, ec))
return boost::intrusive_ptr<file>();
#ifdef TORRENT_WINDOWS