Skip to content

Commit

Permalink
IOS/Network: Fix some error return values
Browse files Browse the repository at this point in the history
  • Loading branch information
sepalani committed Jun 4, 2017
1 parent 3b17d68 commit d7e64de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/IOS/Network/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit d7e64de

Please sign in to comment.