Module: wine Branch: master Commit: c370980dfadcc14e46bd3f4ec8f5f6f8168385f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c370980dfadcc14e46bd3f4ec8...
Author: Rob Shearman rob@codeweavers.com Date: Tue Jan 8 18:13:52 2008 +0000
rpcrt4: Use send on a socket instead of write as it's more portable.
---
dlls/rpcrt4/rpc_transport.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c index 60087f3..4fda513 100644 --- a/dlls/rpcrt4/rpc_transport.c +++ b/dlls/rpcrt4/rpc_transport.c @@ -996,7 +996,7 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection, int bytes_written = 0; do { - int r = write(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written); + int r = send(tcpc->sock, (const char *)buffer + bytes_written, count - bytes_written, 0); if (r >= 0) bytes_written += r; else if (errno != EAGAIN)