From 7b365fd6ad4ae4ae0ada3c6bb9b1d1dac57ad2f0 Mon Sep 17 00:00:00 2001 From: mailwl Date: Thu, 19 May 2016 13:12:57 +0300 Subject: [PATCH] Fix frd:GetMyFriendKey copy --- src/core/hle/service/frd/frd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp index 1c9470e97..821677e52 100644 --- a/src/core/hle/service/frd/frd.cpp +++ b/src/core/hle/service/frd/frd.cpp @@ -88,7 +88,7 @@ void GetMyFriendKey(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); cmd_buff[1] = RESULT_SUCCESS.raw; // No error - Memory::WriteBlock(cmd_buff[2], reinterpret_cast(&my_friend_key), sizeof(FriendKey)); + std::memcpy(&cmd_buff[2], &my_friend_key, sizeof(FriendKey)); LOG_WARNING(Service_FRD, "(STUBBED) called"); }