fixed build issue on windows related to GetCompressedSize()

This commit is contained in:
Arvid Norberg 2010-04-18 02:50:22 +00:00
parent 81d0bed02a
commit fea3bf2ced
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fixed build issue on windows related to GetCompressedSize()
* fixed deadlock when starting torrents with certain invalid tracker URLs
* fixed iterator bug in disk I/O thread
* fixed FIEMAP support on linux

View File

@ -1500,7 +1500,9 @@ namespace libtorrent
{
// only allocate the space if the file
// is not fully allocated
offs.LowPart = GetCompressedFileSize(m_path.c_str(), &offs.HighPart);
DWORD high_dword = 0;
offs.LowPart = GetCompressedFileSize(m_path.c_str(), &high_dword);
offs.HighPart = high_dword;
ec.assign(GetLastError(), get_system_category());
if (ec) return false;
if (offs.QuadPart != s)