From bd27e18d5102bef918bd8a9c24c4c7c24f4c5dd7 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Tue, 26 Jul 2022 02:01:25 -0700 Subject: [PATCH] Fix ARAM Expansion Writes Looks like the memcpy here had its args in the wrong order. --- Source/Core/Core/HW/HSP/HSP_DeviceARAMExpansion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/HSP/HSP_DeviceARAMExpansion.cpp b/Source/Core/Core/HW/HSP/HSP_DeviceARAMExpansion.cpp index 18d6244c30..34fdc1b613 100644 --- a/Source/Core/Core/HW/HSP/HSP_DeviceARAMExpansion.cpp +++ b/Source/Core/Core/HW/HSP/HSP_DeviceARAMExpansion.cpp @@ -37,7 +37,7 @@ u64 CHSPDevice_ARAMExpansion::Read(u32 address) void CHSPDevice_ARAMExpansion::Write(u32 address, u64 value) { value = Common::swap64(value); - std::memcpy(&value, &m_ptr[address & m_mask], sizeof(value)); + std::memcpy(&m_ptr[address & m_mask], &value, sizeof(value)); } void CHSPDevice_ARAMExpansion::DoState(PointerWrap& p)