fix build

This commit is contained in:
Arvid Norberg 2012-04-28 21:27:29 +00:00
parent 1c60ae4064
commit e73e96b04c
1 changed files with 5 additions and 3 deletions

View File

@ -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