mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
Fix more *nix issues.
This commit is contained in:
parent
b6e054a2be
commit
98a038aefb
@ -75,9 +75,6 @@ s32 WiiSockMan::getNetErrorCode(s32 ret, std::string caller, bool isRW)
|
|||||||
}else{
|
}else{
|
||||||
return -SO_EINPROGRESS; // EINPROGRESS
|
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:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -126,7 +123,7 @@ s32 WiiSocket::closeFd()
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
s32 ret = closesocket(fd);
|
s32 ret = closesocket(fd);
|
||||||
#else
|
#else
|
||||||
s32 ret = close(sock);
|
s32 ret = close(fd);
|
||||||
#endif
|
#endif
|
||||||
ReturnValue = WiiSockMan::getNetErrorCode(ret, "delSocket", false);
|
ReturnValue = WiiSockMan::getNetErrorCode(ret, "delSocket", false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user