From 01c931e6cb7ad480cb1a29c9bc54bfeb83a64198 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sun, 4 Jan 2004 04:22:23 +0000 Subject: [PATCH] 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 --- src/apps/showimage/ShowImageView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 75f32a57f0..25dd45315d 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -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) {