Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ceb7fda3
Commit
ceb7fda3
authored
Dec 13, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix rpcrt4_conn_tcp_read and rpcrt4_conn_tcp_write for reading/writing zero-sized data.
parent
6ad4d592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+4
-4
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
ceb7fda3
...
...
@@ -1345,7 +1345,7 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
{
RpcConnection_tcp
*
tcpc
=
(
RpcConnection_tcp
*
)
Connection
;
int
bytes_read
=
0
;
do
while
(
bytes_read
!=
count
)
{
int
r
=
recv
(
tcpc
->
sock
,
(
char
*
)
buffer
+
bytes_read
,
count
-
bytes_read
,
0
);
if
(
!
r
)
...
...
@@ -1362,7 +1362,7 @@ static int rpcrt4_conn_tcp_read(RpcConnection *Connection,
if
(
!
rpcrt4_sock_wait_for_recv
(
tcpc
))
return
-
1
;
}
}
while
(
bytes_read
!=
count
);
}
TRACE
(
"%d %p %u -> %d
\n
"
,
tcpc
->
sock
,
buffer
,
count
,
bytes_read
);
return
bytes_read
;
}
...
...
@@ -1372,7 +1372,7 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
{
RpcConnection_tcp
*
tcpc
=
(
RpcConnection_tcp
*
)
Connection
;
int
bytes_written
=
0
;
do
while
(
bytes_written
!=
count
)
{
int
r
=
send
(
tcpc
->
sock
,
(
const
char
*
)
buffer
+
bytes_written
,
count
-
bytes_written
,
0
);
if
(
r
>=
0
)
...
...
@@ -1384,7 +1384,7 @@ static int rpcrt4_conn_tcp_write(RpcConnection *Connection,
if
(
!
rpcrt4_sock_wait_for_send
(
tcpc
))
return
-
1
;
}
}
while
(
bytes_written
!=
count
);
}
TRACE
(
"%d %p %u -> %d
\n
"
,
tcpc
->
sock
,
buffer
,
count
,
bytes_written
);
return
bytes_written
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment