mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Clarify the usage of last_error in YR_MEMORY_BLOCK_ITERATOR.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user