forked from enlightenment/efl
- change find to leave the list pointing to the found item instead of the
next item in the list SVN revision: 27899
This commit is contained in:
parent
43bd78a18f
commit
c826f19dce
|
@ -1051,8 +1051,11 @@ _ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, const void *user_d
|
|||
if (!list || !function) return NULL;
|
||||
|
||||
_ecore_list_goto_first(list);
|
||||
while ((value = _ecore_list_next(list)) != NULL)
|
||||
while ((value = _ecore_list_current(list)) != NULL)
|
||||
{
|
||||
if (!function(value, user_data)) return value;
|
||||
ecore_list_next(list);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue