From 2d6d76c5251a62b3f595931822c4ca86115fdfc4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 3 Nov 2011 09:19:43 +0000 Subject: [PATCH] fix mistake in last disk I/O patch --- src/storage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/storage.cpp b/src/storage.cpp index 182cca19d..19a72b1e4 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -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; }