diff --git a/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp b/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp index 66c1bcbff6..5166f44707 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_Socket.cpp @@ -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); }