commit | 5ae4a9040002b415340a89e512a2a3c30cdcb81c | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed Aug 07 18:26:47 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Aug 07 18:26:47 2019 -0700 |
tree | d43e51a7ab8261709edf4fc19d428cc7c9949e08 | |
parent | ef06b4fc7afed429f97a456258374c5ba0b22dce [diff] [blame] |
adb: windows: fix writev on sockets. Bug: http://b/139078301 Test: treehugger Change-Id: I000c12ef9dedad530a166175cf089df45378f759
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);