Fix crash in Wii games using IPCHLE networking.

Address passed from IOS to PowerPC should be in the 0x90000000 range, not
0x10000000.

Issue 8264.
This commit is contained in:
magumagu 2015-02-22 14:03:14 -08:00
parent 3ab006b8d1
commit b5020b1675
1 changed files with 3 additions and 1 deletions

View File

@ -1057,7 +1057,9 @@ IPCCommandResult CWII_IPC_HLE_Device_net_ip_top::IOCtl(u32 _CommandAddress)
}
Memory::Memset(BufferOut, 0, BufferOutSize);
u32 wii_addr = BufferOut + 4 * 3 + 2 * 2;
// TODO: This is really hacky; is it actually what IOS does?
u32 wii_addr = 0x80000000 | (BufferOut + 4 * 3 + 2 * 2);
u32 name_length = (u32)strlen(remoteHost->h_name) + 1;
Memory::CopyToEmu(wii_addr, remoteHost->h_name, name_length);