[Kernel] Proper size in XamUserCreateAchievementEnumerator.

This commit is contained in:
gibbed 2018-11-26 20:43:41 -06:00
parent 248b661d14
commit 527f960288
1 changed files with 2 additions and 3 deletions

View File

@ -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();