mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
IOS/Network: Handle SO_EAFNOSUPPORT
This commit is contained in:
parent
5a9e61997c
commit
1c18dc48c7
@ -620,6 +620,8 @@ s32 WiiSockMan::AddSocket(s32 fd)
|
|||||||
|
|
||||||
s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol)
|
s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol)
|
||||||
{
|
{
|
||||||
|
if (af != 2 && af != 23) // AF_INET && AF_INET6
|
||||||
|
return -SO_EAFNOSUPPORT;
|
||||||
s32 fd = static_cast<s32>(socket(af, type, protocol));
|
s32 fd = static_cast<s32>(socket(af, type, protocol));
|
||||||
s32 wii_fd = AddSocket(fd);
|
s32 wii_fd = AddSocket(fd);
|
||||||
s32 ret = GetNetErrorCode(wii_fd, "NewSocket", false);
|
s32 ret = GetNetErrorCode(wii_fd, "NewSocket", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user