From a3c4070d914084c75eea17bad1f8b360169571dc Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sun, 4 Jun 2017 03:10:13 +0100 Subject: [PATCH] IOS/Network: Handle SO_EPROTOTYPE --- 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 1b3ffbdf26..9a3b56120f 100644 --- a/Source/Core/Core/IOS/Network/Socket.cpp +++ b/Source/Core/Core/IOS/Network/Socket.cpp @@ -640,6 +640,8 @@ s32 WiiSockMan::NewSocket(s32 af, s32 type, s32 protocol) return -SO_EAFNOSUPPORT; if (protocol != 0) // IPPROTO_IP return -SO_EPROTONOSUPPORT; + if (type != 1 && type != 2) // SOCK_STREAM && SOCK_DGRAM + return -SO_EPROTOTYPE; s32 fd = static_cast(socket(af, type, protocol)); return AddSocket(fd, false); }