Fixed bug in FindNextImage where -1 is returned instead of false
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1814,7 +1814,7 @@ ShowImageView::FindNextImage(entry_ref *in_current, entry_ref *out_image, bool n
|
||||
int32 cur;
|
||||
|
||||
if (curImage.GetParent(&parent) != B_OK)
|
||||
return -1;
|
||||
return false;
|
||||
|
||||
while (parent.GetNextRef(&entry) == B_OK) {
|
||||
if (entry != *in_current) {
|
||||
|
||||
Reference in New Issue
Block a user