commit | c09d8a8fb84d8a340eda843d66f58daf13ed3f64 | [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 | 5c8ec7a9a10af659acb4f73bed0f28df5c448546 [diff] | |
parent | 252b86996d830edb15d5abf58060dcb23a3822be [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);