mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
IOS/Network: Handle SO_EPROTOTYPE
This commit is contained in:
parent
b327fd8b2c
commit
a3c4070d91
@ -640,6 +640,8 @@ s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol)
|
|||||||
return -SO_EAFNOSUPPORT;
|
return -SO_EAFNOSUPPORT;
|
||||||
if (protocol != 0) // IPPROTO_IP
|
if (protocol != 0) // IPPROTO_IP
|
||||||
return -SO_EPROTONOSUPPORT;
|
return -SO_EPROTONOSUPPORT;
|
||||||
|
if (type != 1 && type != 2) // SOCK_STREAM && SOCK_DGRAM
|
||||||
|
return -SO_EPROTOTYPE;
|
||||||
s32 fd = static_cast<s32>(socket(af, type, protocol));
|
s32 fd = static_cast<s32>(socket(af, type, protocol));
|
||||||
return AddSocket(fd, false);
|
return AddSocket(fd, false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user