fixed windows unit tests
This commit is contained in:
@@ -81,6 +81,8 @@ namespace libtorrent
|
|||||||
return boost::shared_ptr<file>();
|
return boost::shared_ptr<file>();
|
||||||
}
|
}
|
||||||
#ifdef TORRENT_WINDOWS
|
#ifdef TORRENT_WINDOWS
|
||||||
|
// file prio is supported on vista and up
|
||||||
|
#if _WIN32_WINNT >= 0x0600
|
||||||
if (m_low_prio_io)
|
if (m_low_prio_io)
|
||||||
{
|
{
|
||||||
FILE_IO_PRIORITY_HINT_INFO priorityHint;
|
FILE_IO_PRIORITY_HINT_INFO priorityHint;
|
||||||
@@ -88,6 +90,7 @@ namespace libtorrent
|
|||||||
result = SetFileInformationByHandle(e.file_ptr->native_handle(),
|
result = SetFileInformationByHandle(e.file_ptr->native_handle(),
|
||||||
FileIoPriorityHintInfo, &priorityHint, sizeof(PriorityHint));
|
FileIoPriorityHintInfo, &priorityHint, sizeof(PriorityHint));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
TORRENT_ASSERT(e.file_ptr->is_open());
|
TORRENT_ASSERT(e.file_ptr->is_open());
|
||||||
e.mode = m;
|
e.mode = m;
|
||||||
|
Reference in New Issue
Block a user