Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix IOCTLV_SO_GETADDRINFO.
It tried to cast incoming pointers to native ones.  The values are
required to be null anyway, so it doesn't really matter, but it fixes a
warning at least.
  • Loading branch information
comex committed Sep 2, 2013
1 parent 1865275 commit c08f06f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net.cpp
Expand Up @@ -1261,9 +1261,9 @@ bool CWII_IPC_HLE_Device_net_ip_top::IOCtlV(u32 CommandAddress)
hints.ai_socktype = Memory::Read_U32(_BufferIn3 + 0x8);
hints.ai_protocol = Memory::Read_U32(_BufferIn3 + 0xC);
hints.ai_addrlen = Memory::Read_U32(_BufferIn3 + 0x10);
hints.ai_canonname = (char*)Memory::Read_U32(_BufferIn3 + 0x14);
hints.ai_addr = (sockaddr *)Memory::Read_U32(_BufferIn3 + 0x18);
hints.ai_next = (addrinfo *)Memory::Read_U32(_BufferIn3 + 0x1C);
hints.ai_canonname = NULL;
hints.ai_addr = NULL;
hints.ai_next = NULL;
}

char* pNodeName = NULL;
Expand Down

0 comments on commit c08f06f

Please sign in to comment.