(try 2) ws2_32: getsockname should fail for unbound sockets

Damjan Jovanovic damjan.jov at gmail.com
Wed May 30 22:48:50 CDT 2007

Try 2 checks whether sin[6]_addr is zero in addition to checking
whether sin[6]_port is zero when deciding if a sockaddr is bound.

* getsockname should fail with WSAEINVAL if the socket isn't bound,
and leave the sockaddr unmodified.

Damjan Jovanovic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getsockname.patch
Type: text/x-diff
Size: 2582 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070531/fafa5687/getsockname.bin

More information about the wine-patches mailing list