Explorar o código

FRD: fix GetMyFriendKey

mailwl %!s(int64=9) %!d(string=hai) anos
pai
achega
f672c7bd24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/service/frd/frd.cpp

+ 1 - 1
src/core/hle/service/frd/frd.cpp

@@ -87,7 +87,7 @@ void GetMyFriendKey(Service::Interface* self) {
     u32* cmd_buff = Kernel::GetCommandBuffer();
 
     cmd_buff[1] = RESULT_SUCCESS.raw; // No error
-    Memory::WriteBlock(cmd_buff[2], &my_friend_key, sizeof(FriendKey));
+    std::memcpy(&cmd_buff[2], &my_friend_key, sizeof(FriendKey));
     LOG_WARNING(Service_FRD, "(STUBBED) called");
 }