forked from premiere/premiere-libtorrent
fix file_pool to support new absolute paths in file_storage
This commit is contained in:
parent
8f3723cdef
commit
dd183c2116
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue