commit | 3d0ecde28f18182a6e8c5584b300b1455f2a5fc6 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Aug 12 22:33:44 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Aug 12 22:33:44 2019 +0000 |
tree | ba52ed738f26f56d1132085fc12016541746801c | |
parent | 0fe1b4bd8c0400989651f58b47844d8de3fa5ddd [diff] | |
parent | 5ae4a9040002b415340a89e512a2a3c30cdcb81c [diff] |
Merge "adb: windows: fix writev on sockets."
diff --git a/adb/sysdeps_win32.cpp b/adb/sysdeps_win32.cpp index 6372b3d..dc2525c 100644 --- a/adb/sysdeps_win32.cpp +++ b/adb/sysdeps_win32.cpp
@@ -688,7 +688,7 @@ android::base::SystemErrorCodeToString(err).c_str()); } _socket_set_errno(err); - result = -1; + return -1; } CHECK_GE(static_cast<DWORD>(std::numeric_limits<int>::max()), bytes_written); return static_cast<int>(bytes_written);