Daniel Carrera wrote: > I think I understand the problem. We have: > > > if (count == 0 || (count == 1 && images[0] == caf_this_image)) > *stat = 0; Well, you could have kept the return: if (count == 0 || (count == 1&& images[0] == caf_this_image)) - return 0; + *stat = 0; Tobias