Zebediah Figura : ws2_32: Explicitly forbid setting SO_TYPE.
Alexandre Julliard
julliard at winehq.org
Tue Jun 22 16:17:07 CDT 2021
Module: wine
Branch: master
Commit: fd7954974b9d94b4abe5b2ee8918f8ca063b51db
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fd7954974b9d94b4abe5b2ee8918f8ca063b51db
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Jun 22 10:24:15 2021 -0500
ws2_32: Explicitly forbid setting SO_TYPE.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index a0f704eba20..cb576bad5f2 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3625,7 +3625,6 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
* however, using it the BSD way fixes bug 8513 and seems to be what
* most programmers assume, anyway */
case WS_SO_REUSEADDR:
- case WS_SO_TYPE:
convert_sockopt(&level, &optname);
break;
@@ -3716,6 +3715,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
/* fall through */
case WS_SO_ACCEPTCONN:
+ case WS_SO_TYPE:
SetLastError(WSAENOPROTOOPT);
return SOCKET_ERROR;
}
More information about the wine-cvs
mailing list