fix mistake in last disk I/O patch

This commit is contained in:
Arvid Norberg 2011-11-03 09:19:43 +00:00
parent 1d238fd1d8
commit 2d6d76c525
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}