wine-devel digest, Vol 1 #445 - 9 msgs

Francois Gouget fgouget at free.fr
Sun Sep 2 22:01:31 CDT 2001


  (It seems it did not go through the previous time)


On Fri, 31 Aug 2001, Robert Lunnon wrote:

> Thanks you saved me a lot of trouble tracking that down, Works fine
> with simple tcp links. Eudora manages to log into my mail server but
> crashes randomly after that. I miss Eudora so it is my target
> application to get going
> 
> Since it works could you submit the patch (its your work)

   Here goes :-)

Long explanation:
   I believe that the problem is that SOCK_STREAM==1 SOCK_DGRAM==2 on
windows and linux while it is SOCK_STREAM==2 and SOCK_DGRAM==1 on
Solaris. So WSOCK32_socket assumed that the type parameter does not need
any conversion, which seems to be wrong on Solaris.


Changelog:

 * dlls/winsock/socket.c
   Convert the socket type (necessary on Solaris)


--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
The nice thing about meditation is that it makes doing nothing quite respectable
                                  -- Paul Dean
-------------- next part --------------
Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.59
diff -u -r1.59 socket.c
--- dlls/winsock/socket.c	2001/08/24 21:33:58	1.59
+++ dlls/winsock/socket.c	2001/08/30 15:39:11
@@ -2175,9 +2156,15 @@
     /* check the socket type */
     switch(type) 
     {
-	case SOCK_STREAM:
-	case SOCK_DGRAM:
-	case SOCK_RAW:  break;
+	case WS_SOCK_STREAM:
+	    type=SOCK_STREAM;
+	    break;
+	case WS_SOCK_DGRAM:
+	    type=SOCK_STREAM;
+	    break;
+	case WS_SOCK_RAW:
+	    type=SOCK_STREAM;
+	    break;
 	default:        SetLastError(WSAESOCKTNOSUPPORT); 
 			return INVALID_SOCKET;
     }


More information about the wine-patches mailing list