mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 06:40:03 +00:00
IOS/Network: Fix some error return values
This commit is contained in:
parent
3b217adc5e
commit
140969000e
@ -663,12 +663,12 @@ s32 WiiSockMan::GetHostSocket(s32 wii_fd) const
|
|||||||
{
|
{
|
||||||
if (WiiSockets.count(wii_fd) > 0)
|
if (WiiSockets.count(wii_fd) > 0)
|
||||||
return WiiSockets.at(wii_fd).fd;
|
return WiiSockets.at(wii_fd).fd;
|
||||||
return EBADF;
|
return -EBADF;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 WiiSockMan::DeleteSocket(s32 s)
|
s32 WiiSockMan::DeleteSocket(s32 s)
|
||||||
{
|
{
|
||||||
s32 ReturnValue = EBADF;
|
s32 ReturnValue = -SO_EBADF;
|
||||||
auto socket_entry = WiiSockets.find(s);
|
auto socket_entry = WiiSockets.find(s);
|
||||||
if (socket_entry != WiiSockets.end())
|
if (socket_entry != WiiSockets.end())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user