* This should fix #4760.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33517 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-10-11 14:33:53 +00:00
parent d572484dd5
commit a1a928319d
@@ -1565,7 +1565,12 @@ Query::GetNextEntry(struct dirent* dirent, size_t size)
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)