fix mistake in last disk I/O patch
This commit is contained in:
@@ -1353,7 +1353,11 @@ ret:
|
||||
if (aligned_start < actual_file_size && !ec)
|
||||
{
|
||||
size_type ret = file_handle->readv(aligned_start, &b, 1, ec);
|
||||
if (ec && ec != error_code(ERROR_HANDLE_EOF, get_system_category()))
|
||||
if (ec
|
||||
#ifdef TORRENT_WINDOWS
|
||||
&& ec != error_code(ERROR_HANDLE_EOF, get_system_category())
|
||||
#endif
|
||||
)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user