Skip to content

Commit

Permalink
[Kernel] Proper size in XamUserCreateAchievementEnumerator.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbed committed Nov 27, 2018
1 parent 248b661 commit 527f960
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xenia/kernel/xam/xam_user.cc
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,10 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id,
lpdword_t buffer_size_ptr,
lpdword_t handle_ptr) {
if (buffer_size_ptr) {
// TODO(benvanik): struct size/etc.
*buffer_size_ptr = 64 * count;
*buffer_size_ptr = 500 * count;
}

auto e = new XStaticEnumerator(kernel_state(), count, 64);
auto e = new XStaticEnumerator(kernel_state(), count, 500);
e->Initialize();

*handle_ptr = e->handle();
Expand Down

0 comments on commit 527f960

Please sign in to comment.