[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:
parent
4498a28568
commit
ddee85f0be
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue