fix mistake in last disk I/O patch
This commit is contained in:
parent
1d238fd1d8
commit
2d6d76c525
|
@ -1353,7 +1353,11 @@ ret:
|
||||||
if (aligned_start < actual_file_size && !ec)
|
if (aligned_start < actual_file_size && !ec)
|
||||||
{
|
{
|
||||||
size_type ret = file_handle->readv(aligned_start, &b, 1, 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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue