From b5020b16756ad13fecf71f8548822696eea34a50 Mon Sep 17 00:00:00 2001 From: magumagu Date: Sun, 22 Feb 2015 14:03:14 -0800 Subject: [PATCH] Fix crash in Wii games using IPCHLE networking. Address passed from IOS to PowerPC should be in the 0x90000000 range, not 0x10000000. Issue 8264. --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp index d07a696a5e..b0af703423 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net.cpp @@ -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);