forked from premiere/premiere-libtorrent
fix build
This commit is contained in:
parent
1c60ae4064
commit
e73e96b04c
|
@ -168,7 +168,7 @@ namespace libtorrent
|
|||
std::string utf8;
|
||||
wchar_utf8(p, utf8);
|
||||
#if TORRENT_USE_UNC_PATHS
|
||||
p = canonicalize_path(p);
|
||||
utf8 = canonicalize_path(utf8);
|
||||
#endif
|
||||
boost::scoped_ptr<storage_interface> st(
|
||||
default_storage_constructor(const_cast<file_storage&>(t.files()), 0, utf8, fp
|
||||
|
@ -199,10 +199,12 @@ namespace libtorrent
|
|||
{
|
||||
file_pool fp;
|
||||
#if TORRENT_USE_UNC_PATHS
|
||||
p = canonicalize_path(p);
|
||||
std::string path = canonicalize_path(p);
|
||||
#else
|
||||
std::string const& path = p;
|
||||
#endif
|
||||
boost::scoped_ptr<storage_interface> st(
|
||||
default_storage_constructor(const_cast<file_storage&>(t.files()), 0, p, fp
|
||||
default_storage_constructor(const_cast<file_storage&>(t.files()), 0, path, fp
|
||||
, std::vector<boost::uint8_t>()));
|
||||
|
||||
// if we're calculating file hashes as well, use this hasher
|
||||
|
|
Loading…
Reference in New Issue