updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / btg-svn / load_file.patch
blob53266f510c5fedf60cdd2305df38f1118f3e2f3e
1 diff -aur old/daemon/context.cpp new/daemon/context.cpp
2 --- old/daemon/context.cpp 2011-04-17 14:37:02.474353087 +0200
3 +++ new/daemon/context.cpp 2011-04-17 14:38:15.560623826 +0200
4 @@ -548,13 +548,15 @@
6 boost::intrusive_ptr<libtorrent::torrent_info> tinfo;
7 bool gotInfo = true;
8 + using namespace boost::system;
9 + BOOST_SYSTEM_DECL error_code ec;
10 try
12 boost::filesystem::path targetFilename(targetPath);
13 BTG_MNOTICE(logWrapper(), "Attempt to get info from '" << targetPath << "'");
15 std::vector<char> contents;
16 - if (libtorrent::load_file(targetFilename, contents) == 0)
17 + if (libtorrent::load_file(targetFilename, contents, ec) == 0)
19 BTG_MNOTICE(logWrapper(), "Loaded " << targetFilename << " into buffer, size " << contents.size() << " bytes.");