| 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 3b942d35edc532659f8ccdf2035c4aa990cafe70..f8bee750761c797443a85db8f53e6b0067d84b0c 100644
|
| --- a/net/base/file_stream_context_win.cc
|
| +++ b/net/base/file_stream_context_win.cc
|
| @@ -65,8 +65,11 @@ int FileStream::Context::Read(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);
|
| @@ -86,8 +89,11 @@ int FileStream::Context::Write(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);
|
|
|