mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:45:38 +00:00
Change WS_bind to accept an sa_family of 0 as "don't care".
This commit is contained in:
parent
e76d25f68c
commit
698a0cb44b
|
@ -1420,7 +1420,7 @@ int WINAPI WS_bind(SOCKET s, const struct WS_sockaddr* name, int namelen)
|
|||
|
||||
if (fd != -1)
|
||||
{
|
||||
if (!name || !SUPPORTED_PF(name->sa_family))
|
||||
if (!name || (name->sa_family && !SUPPORTED_PF(name->sa_family)))
|
||||
{
|
||||
SetLastError(WSAEAFNOSUPPORT);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue