summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-21 00:49:52 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 01:48:57 +0200
commit9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e (patch)
tree6f6e85715156730928c4ecd9fb58fa0ff967a6a9
parentprofile_manager: Use type aliases for username data, profile data, and user arrays (diff)
downloadyuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.gz
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.bz2
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.lz
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.xz
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.tar.zst
yuzu-9d8f19d7bf69dd9213c2ced378f8a5e26f3d4d6e.zip
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index f34f5af97..e0b03d763 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -207,7 +207,7 @@ UUID ProfileManager::GetLastOpenedUser() const {
bool ProfileManager::GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile,
ProfileData& data) const {
if (GetProfileBase(index, profile)) {
- std::memcpy(data.data(), profiles[index.get()].data.data(), MAX_DATA);
+ data = profiles[index.get()].data;
return true;
}
return false;