Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4be1fce0
Commit
4be1fce0
authored
Nov 22, 2012
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Remove unused variables.
parent
2691e580
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
net.c
dlls/winhttp/net.c
+1
-2
request.c
dlls/winhttp/request.c
+3
-5
No files found.
dlls/winhttp/net.c
View file @
4be1fce0
...
...
@@ -927,14 +927,13 @@ BOOL netconn_get_next_line( netconn_t *conn, char *buffer, DWORD *buflen )
DWORD
netconn_set_timeout
(
netconn_t
*
netconn
,
BOOL
send
,
int
value
)
{
int
res
;
struct
timeval
tv
;
/* value is in milliseconds, convert to struct timeval */
tv
.
tv_sec
=
value
/
1000
;
tv
.
tv_usec
=
(
value
%
1000
)
*
1000
;
if
(
(
res
=
setsockopt
(
netconn
->
socket
,
SOL_SOCKET
,
send
?
SO_SNDTIMEO
:
SO_RCVTIMEO
,
(
void
*
)
&
tv
,
sizeof
(
tv
)
)
==
-
1
)
)
if
(
setsockopt
(
netconn
->
socket
,
SOL_SOCKET
,
send
?
SO_SNDTIMEO
:
SO_RCVTIMEO
,
(
void
*
)
&
tv
,
sizeof
(
tv
)
)
==
-
1
)
{
WARN
(
"setsockopt failed (%s)
\n
"
,
strerror
(
errno
));
return
sock_get_error
(
errno
);
...
...
dlls/winhttp/request.c
View file @
4be1fce0
...
...
@@ -2814,7 +2814,7 @@ static DWORD wait_for_completion( struct winhttp_request *request )
static
HRESULT
request_receive
(
struct
winhttp_request
*
request
)
{
DWORD
err
,
size
,
total_bytes_read
,
buflen
=
4096
;
DWORD
err
,
size
,
buflen
=
4096
;
wait_set_status_callback
(
request
,
WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
);
if
(
!
WinHttpReceiveResponse
(
request
->
hrequest
,
NULL
))
...
...
@@ -2829,7 +2829,7 @@ static HRESULT request_receive( struct winhttp_request *request )
}
if
(
!
(
request
->
buffer
=
heap_alloc
(
buflen
)))
return
E_OUTOFMEMORY
;
request
->
buffer
[
0
]
=
0
;
size
=
total_bytes_read
=
0
;
size
=
0
;
do
{
wait_set_status_callback
(
request
,
WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
);
...
...
@@ -2860,7 +2860,6 @@ static HRESULT request_receive( struct winhttp_request *request )
goto
error
;
}
if
((
err
=
wait_for_completion
(
request
)))
goto
error
;
total_bytes_read
+=
request
->
bytes_read
;
request
->
offset
+=
request
->
bytes_read
;
}
while
(
request
->
bytes_read
);
...
...
@@ -2913,7 +2912,6 @@ static HRESULT request_send( struct winhttp_request *request )
char
*
ptr
=
NULL
;
LONG
size
=
0
;
HRESULT
hr
;
BOOL
ret
;
DWORD
err
;
if
((
err
=
request_set_parameters
(
request
)))
return
HRESULT_FROM_WIN32
(
err
);
...
...
@@ -2952,7 +2950,7 @@ static HRESULT request_send( struct winhttp_request *request )
}
}
wait_set_status_callback
(
request
,
WINHTTP_CALLBACK_STATUS_REQUEST_SENT
);
if
(
!
(
ret
=
WinHttpSendRequest
(
request
->
hrequest
,
NULL
,
0
,
ptr
,
size
,
size
,
0
)
))
if
(
!
WinHttpSendRequest
(
request
->
hrequest
,
NULL
,
0
,
ptr
,
size
,
size
,
0
))
{
err
=
get_last_error
();
goto
error
;
...
...
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