Chromium Code Reviews| Index: runtime/bin/socket_win.cc |
| diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc |
| index 3e31350b95f00a4df9f6b36db57fb350289e85e2..21e2b20092533c5b4a037819ffc6edd262a37e4e 100644 |
| --- a/runtime/bin/socket_win.cc |
| +++ b/runtime/bin/socket_win.cc |
| @@ -48,7 +48,7 @@ static intptr_t Create(const RawAddr& addr) { |
| l.l_linger = 10; |
| int status = setsockopt(s, SOL_SOCKET, SO_LINGER, reinterpret_cast<char*>(&l), |
| sizeof(l)); |
| - if (status != NO_ERROR) { |
| + if (status != MX_OK) { |
|
zra
2017/06/09 19:24:25
ditto
|
| FATAL("Failed setting SO_LINGER on socket"); |
| } |
| @@ -66,7 +66,7 @@ static intptr_t Connect(intptr_t fd, |
| int status = |
| bind(s, &bind_addr.addr, SocketAddress::GetAddrLength(bind_addr)); |
| - if (status != NO_ERROR) { |
| + if (status != MX_OK) { |
| int rc = WSAGetLastError(); |
| handle->mark_closed(); // Destructor asserts that socket is marked closed. |
| handle->Release(); |