WS_setsockopt patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

From a problem report in cemw.

Changelog:
	dlls/winsock	: socket.c
	Correct optlen when WS_setsockopt is called with SO_LINGER.

Rein.
-- 
Rein Klazes
rklazes@xs4all.nl
--- wine/dlls/winsock/socket.c	Tue Jan 22 08:21:45 2002
+++ mywine/dlls/winsock/socket.c	Mon Jan 28 12:23:43 2002
@@ -2235,7 +2235,7 @@
                 /* FIXME: what is documented behavior if SO_LINGER optval
                    is null?? */
                 optval = (char*)&linger;
-                optlen = sizeof(struct WS_linger);
+                optlen = sizeof(struct linger);
             } else if (optlen < sizeof(int)){
                 woptval= *((INT16 *) optval);
                 optval= (char*) &woptval;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux