Merge branch 'master' into d3d12

This commit is contained in:
gibbed 2018-11-26 07:41:47 -06:00
commit 9058868c96
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ dword_result_t XamEnumerate(dword_t handle, dword_t flags, lpvoid_t buffer,
if (actual_buffer_length < e->item_size()) { if (actual_buffer_length < e->item_size()) {
result = X_ERROR_INSUFFICIENT_BUFFER; result = X_ERROR_INSUFFICIENT_BUFFER;
} else if (e->current_item() >= e->item_count()) { } else if (e->current_item() >= e->item_count()) {
result = X_ERROR_NO_MORE_FILES; result = X_ERROR_FUNCTION_FAILED;
} else { } else {
auto item_buffer = buffer.as<uint8_t*>(); auto item_buffer = buffer.as<uint8_t*>();
auto max_items = actual_buffer_length / e->item_size(); auto max_items = actual_buffer_length / e->item_size();