IP/Top: Fix GetAddrInfo written socket

This commit is contained in:
Sepalani 2017-05-31 23:16:43 +01:00
parent 6dc3b2e8bc
commit 726d8de16c
1 changed files with 2 additions and 3 deletions

View File

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