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
b720e42f
Commit
b720e42f
authored
Mar 25, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Pass timeout as DWORD in setsockopt calls.
parent
9fc48b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
netconnection.c
dlls/wininet/netconnection.c
+2
-14
No files found.
dlls/wininet/netconnection.c
View file @
b720e42f
...
...
@@ -949,22 +949,10 @@ int NETCON_GetCipherStrength(netconn_t *connection)
DWORD
NETCON_set_timeout
(
netconn_t
*
connection
,
BOOL
send
,
DWORD
value
)
{
int
result
;
struct
timeval
tv
;
/* value is in milliseconds, convert to struct timeval */
if
(
value
==
INFINITE
)
{
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
0
;
}
else
{
tv
.
tv_sec
=
value
/
1000
;
tv
.
tv_usec
=
(
value
%
1000
)
*
1000
;
}
result
=
setsockopt
(
connection
->
socket
,
SOL_SOCKET
,
send
?
SO_SNDTIMEO
:
SO_RCVTIMEO
,
(
void
*
)
&
tv
,
sizeof
(
tv
));
send
?
SO_SNDTIMEO
:
SO_RCVTIMEO
,
(
void
*
)
&
value
,
sizeof
(
value
));
if
(
result
==
-
1
)
{
WARN
(
"setsockopt failed
\n
"
);
...
...
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