Merge "adb: windows: fix writev on sockets."

This commit is contained in:
Treehugger Robot 2019-08-12 22:33:44 +00:00 committed by Gerrit Code Review
commit 3d0ecde28f

View file

@ -688,7 +688,7 @@ static int _fh_socket_writev(FH f, const adb_iovec* iov, int iovcnt) {
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);