diff options
Diffstat (limited to 'net/url_request/url_request_inet_job.cc')
-rw-r--r-- | net/url_request/url_request_inet_job.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/url_request/url_request_inet_job.cc b/net/url_request/url_request_inet_job.cc index 09abfa2..2d45526 100644 --- a/net/url_request/url_request_inet_job.cc +++ b/net/url_request/url_request_inet_job.cc @@ -185,7 +185,7 @@ void URLRequestInetJob::OnIOComplete(const AsyncResult& result) { } } -bool URLRequestInetJob::ReadRawData(net::IOBuffer* dest, int dest_size, +bool URLRequestInetJob::ReadRawData(char* dest, int dest_size, int *bytes_read) { if (is_done()) return 0; @@ -196,7 +196,7 @@ bool URLRequestInetJob::ReadRawData(net::IOBuffer* dest, int dest_size, *bytes_read = 0; - int result = CallInternetRead(dest->data(), dest_size, bytes_read); + int result = CallInternetRead(dest, dest_size, bytes_read); if (result == ERROR_SUCCESS) { DLOG(INFO) << "read " << *bytes_read << " bytes"; if (*bytes_read == 0) |