Clarify the usage of last_error in YR_MEMORY_BLOCK_ITERATOR.

This commit is contained in:
Victor M. Alvarez
2021-04-09 13:38:04 +02:00
parent 3f179ac2a2
commit 98b4dd3173
+3 -1
View File
@@ -694,7 +694,9 @@ struct YR_MEMORY_BLOCK_ITERATOR
// Error occurred during the last call to "first" or "next" functions. These
// functions must set the value of last_error to ERROR_SUCCESS or to some
// other error code if appropriate.
// other error code if appropriate. Alternatively, last_error can be set to
// ERROR_SUCCESS before using the iterator and changed by "first" or "next"
// only when they want to report an error.
int last_error;
};