Mike Kaplinskiy : ws2_32: Implement SO_UPDATE_ACCEPT_CONTEXT.

Alexandre Julliard julliard at winehq.org
Tue Sep 28 11:13:41 CDT 2010


Module: wine
Branch: master
Commit: f138a5724d5be3c6e6da88c7dd350c6c1a02ad28
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f138a5724d5be3c6e6da88c7dd350c6c1a02ad28

Author: Mike Kaplinskiy <mike.kaplinskiy at gmail.com>
Date:   Mon Sep 27 22:59:58 2010 -0400

ws2_32: Implement SO_UPDATE_ACCEPT_CONTEXT.

---

 dlls/ws2_32/socket.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index a4380aa..b01b623 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3941,6 +3941,12 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
             TRACE("Ignoring SO_UPDATE_CONNECT_CONTEXT, since our sockets are normal\n");
             return 0;
 
+        /* After a AcceptEx call succeeds, the socket can't be used with half of the
+         * normal winsock functions on windows. We don't have that problem. */
+        case WS_SO_UPDATE_ACCEPT_CONTEXT:
+            TRACE("Ignoring SO_UPDATE_ACCEPT_CONTEXT, since our sockets are normal\n");
+            return 0;
+
         /* SO_OPENTYPE does not require a valid socket handle. */
         case WS_SO_OPENTYPE:
             if (!optlen || optlen < sizeof(int) || !optval)




More information about the wine-cvs mailing list