[XAM] Fixed invalid gamertag in XamProfileCreateEnumerator and XamProfileFindAccount
This commit is contained in:
@@ -140,9 +140,6 @@ dword_result_t XamProfileCreateEnumerator_entry(dword_t device_id,
|
|||||||
profile->xuid_offline = xuid;
|
profile->xuid_offline = xuid;
|
||||||
profile->device_id = 1;
|
profile->device_id = 1;
|
||||||
memcpy(&profile->account, &account, sizeof(X_XAMACCOUNTINFO));
|
memcpy(&profile->account, &account, sizeof(X_XAMACCOUNTINFO));
|
||||||
|
|
||||||
xe::string_util::copy_and_swap_truncating(
|
|
||||||
profile->account.gamertag, account.gamertag, sizeof(account.gamertag));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*handle_ptr = e->handle();
|
*handle_ptr = e->handle();
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ dword_result_t XamProfileFindAccount_entry(
|
|||||||
|
|
||||||
std::memcpy(account_ptr, &account, sizeof(X_XAMACCOUNTINFO));
|
std::memcpy(account_ptr, &account, sizeof(X_XAMACCOUNTINFO));
|
||||||
|
|
||||||
xe::string_util::copy_and_swap_truncating(
|
|
||||||
account_ptr->gamertag, account->gamertag, sizeof(account->gamertag));
|
|
||||||
|
|
||||||
if (device_id) {
|
if (device_id) {
|
||||||
*device_id = 1;
|
*device_id = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user