| Index: runtime/bin/socket_win.cc
|
| diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
|
| index 6e1a0bc94f02e86edfe7369d47cedad022e66942..adc6aef87ae7026ad3dabfa9f11e29ee513644c3 100644
|
| --- a/runtime/bin/socket_win.cc
|
| +++ b/runtime/bin/socket_win.cc
|
| @@ -184,9 +184,9 @@ const char* Socket::LookupIPv4Address(char* host, OSError** os_error) {
|
| int status = getaddrinfo(host, 0, &hints, &info);
|
| if (status != 0) {
|
| ASSERT(*os_error == NULL);
|
| - *os_error = new OSError(status,
|
| - gai_strerror(status),
|
| - OSError::kGetAddressInfo);
|
| + DWORD error_code = WSAGetLastError();
|
| + SetLastError(error_code);
|
| + *os_error = new OSError();
|
| return NULL;
|
| }
|
| // Convert the address into IPv4 dotted decimal notation.
|
|
|