forked from premiere/premiere-libtorrent
fixed build issue on windows related to GetCompressedSize()
This commit is contained in:
parent
81d0bed02a
commit
fea3bf2ced
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue