| Index: net/base/file_stream_context_win.cc
|
| diff --git a/net/base/file_stream_context_win.cc b/net/base/file_stream_context_win.cc
|
| index 2477535f57fc80115934380ccc663904723f7674..5baccdb7ebc32827ef0c429beb50e5f4ad238e2d 100644
|
| --- a/net/base/file_stream_context_win.cc
|
| +++ b/net/base/file_stream_context_win.cc
|
| @@ -70,8 +70,11 @@ int FileStream::Context::ReadAsync(IOBuffer* buf,
|
| DCHECK(!async_in_progress_);
|
|
|
| DWORD bytes_read;
|
| - if (!ReadFile(file_.GetPlatformFile(), buf->data(), buf_len,
|
| - &bytes_read, &io_context_.overlapped)) {
|
| + if (!ReadFile(file_.GetPlatformFile(),
|
| + buf->data(),
|
| + buf_len,
|
| + &bytes_read,
|
| + &io_context_.overlapped)) {
|
| IOResult error = IOResult::FromOSError(GetLastError());
|
| if (error.os_error == ERROR_IO_PENDING) {
|
| IOCompletionIsPending(callback, buf);
|
| @@ -91,8 +94,11 @@ int FileStream::Context::WriteAsync(IOBuffer* buf,
|
| int buf_len,
|
| const CompletionCallback& callback) {
|
| DWORD bytes_written = 0;
|
| - if (!WriteFile(file_.GetPlatformFile(), buf->data(), buf_len,
|
| - &bytes_written, &io_context_.overlapped)) {
|
| + if (!WriteFile(file_.GetPlatformFile(),
|
| + buf->data(),
|
| + buf_len,
|
| + &bytes_written,
|
| + &io_context_.overlapped)) {
|
| IOResult error = IOResult::FromOSError(GetLastError());
|
| if (error.os_error == ERROR_IO_PENDING) {
|
| IOCompletionIsPending(callback, buf);
|
|
|