Robert Shearman : rpcrt4: Wait for all of the requested bytes to be returned for tcp connections.

Alexandre Julliard julliard at wine.codeweavers.com
Sat May 20 07:26:43 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 4fb6295528eb4021fa625394a871c9dc414bc035
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=4fb6295528eb4021fa625394a871c9dc414bc035

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri May 19 11:03:20 2006 +0100

rpcrt4: Wait for all of the requested bytes to be returned for tcp connections.

---

 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 4b2f9ae..447cbd8 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -353,7 +353,7 @@ static int rpcrt4_conn_tcp_read(RpcConne
                                 void *buffer, unsigned int count)
 {
   RpcConnection_tcp *tcpc = (RpcConnection_tcp *) Connection;
-  int r = read(tcpc->sock, buffer, count);
+  int r = recv(tcpc->sock, buffer, count, MSG_WAITALL);
   TRACE("%d %p %u -> %d\n", tcpc->sock, buffer, count, r);
   return r;
 }




More information about the wine-cvs mailing list