forked from premiere/premiere-libtorrent
one more UNC path fix
This commit is contained in:
parent
6ecf54996c
commit
44995ee41d
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
* fixed UNC path normalization (on windows, unless UNC paths are disabled)
|
||||||
* fixed possible crash when enabling multiple connections per IP
|
* fixed possible crash when enabling multiple connections per IP
|
||||||
* fixed typo in win vista specific code, breaking the build
|
* fixed typo in win vista specific code, breaking the build
|
||||||
* change default of rate_limit_utp to true
|
* change default of rate_limit_utp to true
|
||||||
|
|
|
@ -6262,12 +6262,19 @@ namespace libtorrent
|
||||||
|
|
||||||
if (m_owning_storage.get())
|
if (m_owning_storage.get())
|
||||||
{
|
{
|
||||||
m_owning_storage->async_move_storage(save_path
|
#if TORRENT_USE_UNC_PATHS
|
||||||
|
std::string path = canonicalize_path(save_path);
|
||||||
|
#else
|
||||||
|
std::string const& path = save_path;
|
||||||
|
#endif
|
||||||
|
m_owning_storage->async_move_storage(path
|
||||||
, boost::bind(&torrent::on_storage_moved, shared_from_this(), _1, _2));
|
, boost::bind(&torrent::on_storage_moved, shared_from_this(), _1, _2));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_save_path = save_path;
|
#if TORRENT_USE_UNC_PATHS
|
||||||
|
m_save_path = canonicalize_path(save_path);
|
||||||
|
#endif
|
||||||
if (alerts().should_post<storage_moved_alert>())
|
if (alerts().should_post<storage_moved_alert>())
|
||||||
{
|
{
|
||||||
alerts().post_alert(storage_moved_alert(get_handle(), m_save_path));
|
alerts().post_alert(storage_moved_alert(get_handle(), m_save_path));
|
||||||
|
|
Loading…
Reference in New Issue