diff --git a/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp b/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp index 96a8df0915..8db1580ef7 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp @@ -243,7 +243,7 @@ void WiiSocket::update(bool read, bool write, bool except) else { int ret = (s32)accept(fd, NULL, 0); - ReturnValue = WiiSockMan::getNetErrorCode(ret, "SO_ACCEPT", false); + ReturnValue = WiiSockMan::getNetErrorCode(ret, "SO_ACCEPT", true); } WiiSockMan::getInstance().addSocket(ReturnValue); @@ -432,8 +432,7 @@ void WiiSocket::update(bool read, bool write, bool except) // send/sendto only handles MSG_OOB flags &= SO_MSG_OOB; - sockaddr_in local_name; - memset(&local_name, 0, sizeof(sockaddr_in)); + sockaddr_in local_name = {0}; if (has_destaddr) { WiiSockAddrIn* wii_name = (WiiSockAddrIn*)Memory::GetPointer(BufferIn2 + 0x0C);