Bruno Jesus : server: Store the protocol while creating the socket.
Alexandre Julliard
julliard at winehq.org
Mon Sep 2 14:34:29 CDT 2013
Module: wine
Branch: master
Commit: f5023dda2d50b56d8c5d633c5769190ad0816916
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5023dda2d50b56d8c5d633c5769190ad0816916
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Sat Aug 31 00:14:44 2013 -0300
server: Store the protocol while creating the socket.
---
server/sock.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/server/sock.c b/server/sock.c
index 041867e..13cef61 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -96,6 +96,7 @@ struct sock
unsigned int pmask; /* pending events */
unsigned int flags; /* socket flags */
int polling; /* is socket being polled? */
+ unsigned short proto; /* socket protocol */
unsigned short type; /* socket type */
unsigned short family; /* socket family */
struct event *event; /* event object */
@@ -643,6 +644,7 @@ static struct object *create_socket( int family, int type, int protocol, unsigne
init_sock( sock );
sock->state = (type != SOCK_STREAM) ? (FD_READ|FD_WRITE) : 0;
sock->flags = flags;
+ sock->proto = protocol;
sock->type = type;
sock->family = family;
@@ -715,6 +717,7 @@ static struct sock *accept_socket( obj_handle_t handle )
if (sock->state & FD_WINE_NONBLOCKING)
acceptsock->state |= FD_WINE_NONBLOCKING;
acceptsock->mask = sock->mask;
+ acceptsock->proto = sock->proto;
acceptsock->type = sock->type;
acceptsock->family = sock->family;
acceptsock->window = sock->window;
More information about the wine-cvs
mailing list