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
7be99b01
Commit
7be99b01
authored
Mar 12, 2000
by
Rein Klazes
Committed by
Alexandre Julliard
Mar 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct conversion of level parameter if WINSOCK_setsockopt is called
for option WS_SO_DONTLINGER.
parent
ad5d10f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
socket.c
dlls/winsock/socket.c
+2
-2
No files found.
dlls/winsock/socket.c
View file @
7be99b01
...
...
@@ -163,7 +163,7 @@ static INT _ws_sock_ops[] =
static
int
_px_sock_ops
[]
=
{
SO_DEBUG
,
SO_REUSEADDR
,
SO_KEEPALIVE
,
SO_DONTROUTE
,
SO_BROADCAST
,
SO_LINGER
,
SO_OOBINLINE
,
SO_SNDBUF
,
SO_RCVBUF
,
SO_ERROR
,
SO_TYPE
,
SO_LINGER
,
WS_SO_DONTLINGER
,
/* no unix equivalent */
#ifdef SO_RCVTIMEO
SO_RCVTIMEO
,
#endif
...
...
@@ -1642,6 +1642,7 @@ INT WINAPI WINSOCK_setsockopt(SOCKET16 s, INT level, INT optname,
int
fd
=
_get_sock_fd
(
s
);
int
woptval
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
optname
==
WS_SO_DONTLINGER
)
{
linger
.
l_onoff
=
*
((
int
*
)
optval
)
?
0
:
1
;
linger
.
l_linger
=
0
;
...
...
@@ -1649,7 +1650,6 @@ INT WINAPI WINSOCK_setsockopt(SOCKET16 s, INT level, INT optname,
optval
=
(
char
*
)
&
linger
;
optlen
=
sizeof
(
struct
linger
);
}
else
{
convert_sockopt
(
&
level
,
&
optname
);
if
(
optname
==
SO_LINGER
&&
optval
)
{
/* yes, uses unsigned short in both win16/win32 */
linger
.
l_onoff
=
((
UINT16
*
)
optval
)[
0
];
...
...
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