From 4ba794d4c90fe14a124365e6cbd1c66d6fe88b0a Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sat, 1 Nov 2014 23:59:19 +1300 Subject: [PATCH] Remove GetPointer from Wii USB Keyboard. --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.cpp index c0fe0576cc..938c7b4302 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_usb_kbd.cpp @@ -66,7 +66,7 @@ bool CWII_IPC_HLE_Device_usb_kbd::IOCtl(u32 _CommandAddress) if (SConfig::GetInstance().m_WiiKeyboard && !m_MessageQueue.empty()) { - *(SMessageData*)Memory::GetPointer(BufferOut) = m_MessageQueue.front(); + Memory::CopyToEmu(BufferOut, &m_MessageQueue.front(), sizeof(SMessageData)); m_MessageQueue.pop(); }