[Kernel] Fix XStaticUntypedEnumerator item count.

[Kernel] Fix XStaticUntypedEnumerator not tracking item count.

Somehow this didn't make it into PR #1862.
This commit is contained in:
gibbed 2021-06-30 13:23:49 -05:00 committed by Rick Gibbed
parent 4498a28568
commit ddee85f0be
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ X_STATUS XEnumerator::Initialize(uint32_t user_index, uint32_t app_id,
uint8_t* XStaticUntypedEnumerator::AppendItem() {
size_t offset = buffer_.size();
buffer_.resize(offset + item_size());
item_count_++;
return const_cast<uint8_t*>(&buffer_.data()[offset]);
}