Author: axeld Date: 2009-10-11 16:33:53 +0200 (Sun, 11 Oct 2009) New Revision: 33517 Changeset: http://dev.haiku-os.org/changeset/33517/haiku Modified: haiku/trunk/src/add-ons/kernel/file_systems/bfs/Query.cpp Log: * This should fix #4760. Modified: haiku/trunk/src/add-ons/kernel/file_systems/bfs/Query.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/file_systems/bfs/Query.cpp 2009-10-11 13:09:04 UTC (rev 33516) +++ haiku/trunk/src/add-ons/kernel/file_systems/bfs/Query.cpp 2009-10-11 14:33:53 UTC (rev 33517) @@ -1565,7 +1565,12 @@ status_t status = fCurrent->PrepareQuery(fVolume, fIndex, &fIterator, fFlags & B_QUERY_NON_INDEXED); - if (status != B_OK && status != B_ENTRY_NOT_FOUND) + if (status == B_ENTRY_NOT_FOUND) { + // try next equation + continue; + } + + if (status != B_OK) return status; } if (fCurrent == NULL)