Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix an accidental duplicate if-statement handling of 0x1007 in WII_IP…
…C_HLE_Device_net.cpp
  • Loading branch information
lioncash committed Sep 2, 2013
1 parent 35b8dfb commit 0219049
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net.cpp
Expand Up @@ -752,11 +752,7 @@ bool CWII_IPC_HLE_Device_net_ip_top::IOCtl(u32 _CommandAddress)
Memory::Write_U32(optlen, BufferOut + 0xC);
Memory::WriteBigEData((u8 *) optval, BufferOut + 0x10, optlen);

if (optname == 0x1007){
s32 errorcode = Memory::Read_U32(BufferOut + 0x10);
INFO_LOG(WII_IPC_NET,"IOCTL_SO_GETSOCKOPT error code = %i", errorcode);
}
else if (optname == SO_ERROR)
if (optname == SO_ERROR)
{
s32 last_error = WiiSockMan::getInstance().getLastNetError();

Expand Down

0 comments on commit 0219049

Please sign in to comment.