IOS/Network: Fix some error return values

This commit is contained in:
Sepalani 2017-06-04 04:40:46 +01:00
parent 3b217adc5e
commit 140969000e
1 changed files with 2 additions and 2 deletions

View File

@ -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())
{