Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: runtime/bin/socket_base_win.cc

Issue 2935483002: Update Fuchsia-specific code to use the new MX_ error names (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/socket_base_win.cc
diff --git a/runtime/bin/socket_base_win.cc b/runtime/bin/socket_base_win.cc
index 5283f4f57e92d99b0a4688bdd4a090a339e5a6c7..4d227a196d9a4ca4b69b4f238e25834a3606a972 100644
--- a/runtime/bin/socket_base_win.cc
+++ b/runtime/bin/socket_base_win.cc
@@ -167,7 +167,7 @@ int SocketBase::GetType(intptr_t fd) {
case FILE_TYPE_DISK:
return File::kFile;
default:
- return GetLastError == NO_ERROR ? File::kOther : -1;
+ return GetLastError == MX_OK ? File::kOther : -1;
zra 2017/06/09 19:24:25 ditto
}
}
@@ -288,7 +288,7 @@ AddressList<InterfaceSocketAddress>* SocketBase::ListInterfaces(
status = GetAdaptersAddresses(SocketAddress::FromType(type), flags, NULL,
addrs, &size);
}
- if (status != NO_ERROR) {
+ if (status != MX_OK) {
ASSERT(*os_error == NULL);
DWORD error_code = WSAGetLastError();
SetLastError(error_code);

Powered by Google App Engine
This is Rietveld 408576698