mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Fix an accidental duplicate if-statement handling of 0x1007 in WII_IPC_HLE_Device_net.cpp
This commit is contained in:
parent
35b8dfbe0c
commit
0219049c03
1 changed files with 1 additions and 5 deletions
|
@ -752,11 +752,7 @@ bool CWII_IPC_HLE_Device_net_ip_top::IOCtl(u32 _CommandAddress)
|
||||||
Memory::Write_U32(optlen, BufferOut + 0xC);
|
Memory::Write_U32(optlen, BufferOut + 0xC);
|
||||||
Memory::WriteBigEData((u8 *) optval, BufferOut + 0x10, optlen);
|
Memory::WriteBigEData((u8 *) optval, BufferOut + 0x10, optlen);
|
||||||
|
|
||||||
if (optname == 0x1007){
|
if (optname == SO_ERROR)
|
||||||
s32 errorcode = Memory::Read_U32(BufferOut + 0x10);
|
|
||||||
INFO_LOG(WII_IPC_NET,"IOCTL_SO_GETSOCKOPT error code = %i", errorcode);
|
|
||||||
}
|
|
||||||
else if (optname == SO_ERROR)
|
|
||||||
{
|
{
|
||||||
s32 last_error = WiiSockMan::getInstance().getLastNetError();
|
s32 last_error = WiiSockMan::getInstance().getLastNetError();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue