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
aa612ec3
Commit
aa612ec3
authored
May 02, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Get rid of useless read_ret in netconn_read.
parent
c8f9c458
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
http.c
dlls/wininet/http.c
+5
-7
No files found.
dlls/wininet/http.c
View file @
aa612ec3
...
...
@@ -2144,8 +2144,7 @@ static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
DWORD
*
read
,
read_mode_t
read_mode
)
{
netconn_stream_t
*
netconn_stream
=
(
netconn_stream_t
*
)
stream
;
DWORD
ret_read
=
0
;
int
len
;
int
len
=
0
;
size
=
min
(
size
,
netconn_stream
->
content_length
-
netconn_stream
->
content_read
);
...
...
@@ -2153,13 +2152,12 @@ static DWORD netconn_read(data_stream_t *stream, http_request_t *req, BYTE *buf,
size
=
min
(
size
,
netconn_get_avail_data
(
stream
,
req
));
if
(
size
)
{
if
(
NETCON_recv
(
&
req
->
netConnection
,
buf
+
ret_read
,
size
,
read_mode
==
READMODE_SYNC
?
MSG_WAITALL
:
0
,
&
len
)
==
ERROR_SUCCESS
)
ret_read
=
len
;
if
(
NETCON_recv
(
&
req
->
netConnection
,
buf
,
size
,
read_mode
==
READMODE_SYNC
?
MSG_WAITALL
:
0
,
&
len
)
!=
ERROR_SUCCESS
)
len
=
0
;
}
netconn_stream
->
content_read
+=
*
read
=
ret_read
;
TRACE
(
"read %u bytes
\n
"
,
ret_read
);
netconn_stream
->
content_read
+=
*
read
=
len
;
TRACE
(
"read %u bytes
\n
"
,
len
);
return
ERROR_SUCCESS
;
}
...
...
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