mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
IOS/Network: Fix some error return values
This commit is contained in:
parent
3b217adc5e
commit
140969000e
1 changed files with 2 additions and 2 deletions
|
@ -663,12 +663,12 @@ s32 WiiSockMan::GetHostSocket(s32 wii_fd) const
|
|||
{
|
||||
if (WiiSockets.count(wii_fd) > 0)
|
||||
return WiiSockets.at(wii_fd).fd;
|
||||
return EBADF;
|
||||
return -EBADF;
|
||||
}
|
||||
|
||||
s32 WiiSockMan::DeleteSocket(s32 s)
|
||||
{
|
||||
s32 ReturnValue = EBADF;
|
||||
s32 ReturnValue = -SO_EBADF;
|
||||
auto socket_entry = WiiSockets.find(s);
|
||||
if (socket_entry != WiiSockets.end())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue