diff --git a/src/xenia/kernel/xam/xam_user.cc b/src/xenia/kernel/xam/xam_user.cc index fbd12af5e..9d49200b2 100644 --- a/src/xenia/kernel/xam/xam_user.cc +++ b/src/xenia/kernel/xam/xam_user.cc @@ -286,7 +286,9 @@ dword_result_t XamUserReadProfileSettings( } uint32_t buffer_size = static_cast(*buffer_size_ptr); - *buffer_size_ptr = size_needed; + if (buffer_size < size_needed) { + *buffer_size_ptr = size_needed; + } if (!buffer_ptr || buffer_size < size_needed) { if (overlapped_ptr) {