Merge pull request #5511 from sepalani/revert-addrinfo

IP/Top: Properly fix GetAddrInfo
This commit is contained in:
shuffle2 2017-06-01 09:11:49 -07:00 committed by GitHub
commit 1eac267930
1 changed files with 2 additions and 2 deletions

View File

@ -919,8 +919,8 @@ IPCCommandResult NetIPTop::HandleGetAddressInfoRequest(const IOCtlVRequest& requ
if (result_iter->ai_addr)
{
Memory::Write_U32(sockoffset, addr + 0x18);
Memory::Write_U8(result_iter->ai_addr->sa_family & 0xFF, sockoffset);
Memory::Write_U8(result_iter->ai_addrlen & 0xFF, sockoffset + 0x01);
Memory::Write_U8(result_iter->ai_addrlen & 0xFF, sockoffset);
Memory::Write_U8(result_iter->ai_addr->sa_family & 0xFF, sockoffset + 0x01);
Memory::CopyToEmu(sockoffset + 0x2, result_iter->ai_addr->sa_data,
sizeof(result_iter->ai_addr->sa_data));
sockoffset += 0x1C;