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
8312539e
Commit
8312539e
authored
Jun 25, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Use IOCTL_AFD_WINE_GET_SO_RCVBUF.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
388e7a76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
socket.c
dlls/ws2_32/socket.c
+4
-1
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
No files found.
dlls/ws2_32/socket.c
View file @
8312539e
...
...
@@ -2090,7 +2090,6 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
/* Handle common cases. The special cases are below, sorted
* alphabetically */
case
WS_SO_RCVBUF
:
case
WS_SO_REUSEADDR
:
case
WS_SO_SNDBUF
:
if
(
(
fd
=
get_sock_fd
(
s
,
0
,
NULL
))
==
-
1
)
...
...
@@ -2285,6 +2284,10 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
}
return
ret
?
0
:
SOCKET_ERROR
;
}
case
WS_SO_RCVBUF
:
return
server_getsockopt
(
s
,
IOCTL_AFD_WINE_GET_SO_RCVBUF
,
optval
,
optlen
);
case
WS_SO_RCVTIMEO
:
case
WS_SO_SNDTIMEO
:
{
...
...
dlls/ws2_32/tests/sock.c
View file @
8312539e
...
...
@@ -1224,7 +1224,7 @@ static void test_set_getsockopt(void)
value
=
0xdeadbeef
;
err
=
getsockopt
(
s
,
SOL_SOCKET
,
SO_RCVBUF
,
(
char
*
)
&
value
,
&
size
);
ok
(
!
err
,
"getsockopt(SO_RCVBUF) failed error: %u
\n
"
,
WSAGetLastError
()
);
todo_wine
ok
(
value
==
4096
,
"expected 4096, got %u
\n
"
,
value
);
ok
(
value
==
4096
,
"expected 4096, got %u
\n
"
,
value
);
/* SO_LINGER */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
linger_testvals
);
i
++
)
{
...
...
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