Commit e2a55be4 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Correct optlen when WS_setsockopt is called with SO_LINGER.

parent eb16e1b0
......@@ -2235,7 +2235,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
/* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment