Commit ae728cfa authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

ws2_32: Add support to check if an IPX socket is bound.

parent 38a3a574
......@@ -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:
{
......
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