Zebediah Figura : ws2_32: Use IOCTL_AFD_WINE_SET_SO_SNDBUF.
Alexandre Julliard
julliard at winehq.org
Wed Jun 30 16:10:59 CDT 2021
Module: wine
Branch: master
Commit: 252d564c7b604c49397d92755bcc174b34afc295
URL: https://source.winehq.org/git/wine.git/?a=commit;h=252d564c7b604c49397d92755bcc174b34afc295
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Jun 29 23:25:41 2021 -0500
ws2_32: Use IOCTL_AFD_WINE_SET_SO_SNDBUF.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/socket.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 89fb7d3462b..3f15bb4e39b 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3575,21 +3575,8 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
case WS_SO_REUSEADDR:
return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_REUSEADDR, optval, optlen );
- /* Some options need some conversion before they can be sent to
- * setsockopt. The conversions are done here, then they will fall through
- * to the general case. Special options that are not passed to
- * setsockopt follow below that.*/
-
case WS_SO_SNDBUF:
- if (!*(const int *)optval)
- {
- FIXME("SO_SNDBUF ignoring request to disable send buffering\n");
-#ifdef __APPLE__
- return 0;
-#endif
- }
- convert_sockopt(&level, &optname);
- break;
+ return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_SNDBUF, optval, optlen );
/* SO_DEBUG is a privileged operation, ignore it. */
case WS_SO_DEBUG:
More information about the wine-cvs
mailing list