Reset the error variable to B_OK in case we want to continue after allocating

only some sub requests worked. Previously we would have simply canceled all
of the subrequests in the loop because we cancel after the first error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32914 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-09-03 05:40:06 +00:00
parent b2350565ba
commit 230153f133
+3
View File
@@ -246,6 +246,9 @@ do_iterative_fd_io_iterate(void* _cookie, io_request* request,
if (error != B_OK && subRequestCount == 0)
return error;
// Reset the error code for the loop below
error = B_OK;
request->Advance(requestOffset - cookie->request_offset);
cookie->request_offset = requestOffset;