Fix more *nix issues.

This commit is contained in:
Matthew Parlane 2013-08-23 00:58:12 +12:00
parent b6e054a2be
commit 98a038aefb
1 changed files with 1 additions and 4 deletions

View File

@ -75,9 +75,6 @@ s32 WiiSockMan::getNetErrorCode(s32 ret, std::string caller, bool isRW)
}else{
return -SO_EINPROGRESS; // EINPROGRESS
}
// TODO: remove as this should no longer be a problem once blocking is supported.
case EITHER(WSA_INVALID_HANDLE, EBADF):
return -SO_EINPROGRESS; // EINPROGRESS
default:
return -1;
}
@ -126,7 +123,7 @@ s32 WiiSocket::closeFd()
#ifdef _WIN32
s32 ret = closesocket(fd);
#else
s32 ret = close(sock);
s32 ret = close(fd);
#endif
ReturnValue = WiiSockMan::getNetErrorCode(ret, "delSocket", false);
}