diff --git a/src/file_pool.cpp b/src/file_pool.cpp index 79d0f0003..d68aa7a5b 100644 --- a/src/file_pool.cpp +++ b/src/file_pool.cpp @@ -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(); #ifdef TORRENT_WINDOWS