Chromium Code Reviews| Index: net/socket/tcp_server_socket_win.cc |
| =================================================================== |
| --- net/socket/tcp_server_socket_win.cc (revision 215189) |
| +++ net/socket/tcp_server_socket_win.cc (working copy) |
| @@ -45,7 +45,7 @@ |
| } |
| socket_ = socket(address.GetSockAddrFamily(), SOCK_STREAM, IPPROTO_TCP); |
| - if (socket_ < 0) { |
| + if (socket_ == INVALID_SOCKET) { |
|
wtc
2013/08/12 17:31:30
See the "Return value" section and example code in
|
| PLOG(ERROR) << "socket() returned an error"; |
| return MapSystemError(WSAGetLastError()); |
| } |