Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Missed a accept error handler.
Init instead of memset.
  • Loading branch information
Parlane committed Oct 9, 2013
1 parent f811dbb commit 935ed81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 935ed81

Please sign in to comment.