From ef20e85661050ae7cf805d86e706331d01e65624 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sun, 4 Jun 2017 01:48:31 +0100 Subject: [PATCH] IOS/Network: Handle SO_EPROTONOSUPPORT --- Source/Core/Core/IOS/Network/Socket.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/IOS/Network/Socket.cpp b/Source/Core/Core/IOS/Network/Socket.cpp index 4cd7624647..772c86dce0 100644 --- a/Source/Core/Core/IOS/Network/Socket.cpp +++ b/Source/Core/Core/IOS/Network/Socket.cpp @@ -622,6 +622,8 @@ s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol) { if (af != 2 && af != 23) // AF_INET && AF_INET6 return -SO_EAFNOSUPPORT; + if (protocol != 0) // IPPROTO_IP + return -SO_EPROTONOSUPPORT; s32 fd = static_cast(socket(af, type, protocol)); s32 wii_fd = AddSocket(fd); s32 ret = GetNetErrorCode(wii_fd, "NewSocket", false);