Skip non-file entries when enumerating OpenGL renderer add-ons. Fixes #8039.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42890 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -148,7 +148,12 @@ GLRendererRoster::AddPath(const char* path)
|
|||||||
int32 files = 0;
|
int32 files = 0;
|
||||||
|
|
||||||
entry_ref ref;
|
entry_ref ref;
|
||||||
|
BEntry entry;
|
||||||
while (directory.GetNextRef(&ref) == B_OK) {
|
while (directory.GetNextRef(&ref) == B_OK) {
|
||||||
|
entry.SetTo(&ref);
|
||||||
|
if (entry.InitCheck() == B_OK && !entry.IsFile())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (CreateRenderer(ref) == B_OK)
|
if (CreateRenderer(ref) == B_OK)
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user