Missed a accept error handler.

Init instead of memset.
This commit is contained in:
Matthew Parlane 2013-10-09 23:35:29 +13:00
parent f811dbb575
commit 935ed814ea
1 changed files with 2 additions and 3 deletions

View File

@ -243,7 +243,7 @@ void WiiSocket::update(bool read, bool write, bool except)
else else
{ {
int ret = (s32)accept(fd, NULL, 0); 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); WiiSockMan::getInstance().addSocket(ReturnValue);
@ -432,8 +432,7 @@ void WiiSocket::update(bool read, bool write, bool except)
// send/sendto only handles MSG_OOB // send/sendto only handles MSG_OOB
flags &= SO_MSG_OOB; flags &= SO_MSG_OOB;
sockaddr_in local_name; sockaddr_in local_name = {0};
memset(&local_name, 0, sizeof(sockaddr_in));
if (has_destaddr) if (has_destaddr)
{ {
WiiSockAddrIn* wii_name = (WiiSockAddrIn*)Memory::GetPointer(BufferIn2 + 0x0C); WiiSockAddrIn* wii_name = (WiiSockAddrIn*)Memory::GetPointer(BufferIn2 + 0x0C);