mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Update to accountListAllUsers
This commit is contained in:
parent
bf2304f0a2
commit
2099402746
@ -112,7 +112,7 @@ static Result _accountListAllUsers(u128* userIDs)
|
|||||||
Result accountListAllUsers(u128* userIDs, size_t max_userIDs, size_t *actual_total)
|
Result accountListAllUsers(u128* userIDs, size_t max_userIDs, size_t *actual_total)
|
||||||
{
|
{
|
||||||
Result rc=0;
|
Result rc=0;
|
||||||
u128 *temp_userIDs = malloc(sizeof(u128) * ACC_USER_LIST_SIZE);
|
u128 temp_userIDs[ACC_USER_LIST_SIZE];
|
||||||
|
|
||||||
rc = _accountListAllUsers(temp_userIDs);
|
rc = _accountListAllUsers(temp_userIDs);
|
||||||
|
|
||||||
@ -131,8 +131,6 @@ Result accountListAllUsers(u128* userIDs, size_t max_userIDs, size_t *actual_tot
|
|||||||
*actual_total = max_userIDs;
|
*actual_total = max_userIDs;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(temp_userIDs);
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user