mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
ws2_32: Add support to check if an IPX socket is bound.
This commit is contained in:
parent
38a3a574f3
commit
ae728cfa27
1 changed files with 5 additions and 2 deletions
|
@ -1427,8 +1427,11 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
|
|||
{
|
||||
#ifdef HAS_IPX
|
||||
case AF_IPX:
|
||||
FIXME("don't know how to tell if IPX socket is bound, assuming it is!\n");
|
||||
return TRUE;
|
||||
{
|
||||
static const struct sockaddr_ipx emptyAddr;
|
||||
struct sockaddr_ipx *ipx = (struct sockaddr_ipx*) uaddr;
|
||||
return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
|
||||
}
|
||||
#endif
|
||||
case AF_INET6:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue