move storage fix

This commit is contained in:
Arvid Norberg
2009-03-30 04:55:23 +00:00
parent db9236fcf8
commit 36eb9c4f51
2 changed files with 20 additions and 2 deletions

View File

@@ -1314,7 +1314,7 @@ namespace libtorrent
m_log << log_time() << " move" << std::endl;
#endif
TORRENT_ASSERT(j.buffer == 0);
ret = j.storage->move_storage_impl(j.str) ? 1 : 0;
ret = j.storage->move_storage_impl(j.str) ? 0 : 1;
if (ret != 0)
{
test_error(j);