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:
parent
b18a9bc338
commit
b0efb2e13b
@ -148,7 +148,12 @@ GLRendererRoster::AddPath(const char* path)
|
||||
int32 files = 0;
|
||||
|
||||
entry_ref ref;
|
||||
BEntry entry;
|
||||
while (directory.GetNextRef(&ref) == B_OK) {
|
||||
entry.SetTo(&ref);
|
||||
if (entry.InitCheck() == B_OK && !entry.IsFile())
|
||||
continue;
|
||||
|
||||
if (CreateRenderer(ref) == B_OK)
|
||||
count++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user