Fixed iteration through message field entries in SetSupportedTypes().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@942 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
35ab40ee3e
commit
f8cada890c
@ -141,7 +141,9 @@ SupportingApps::SetSupportedTypes(const char *app, const BMessage *types, bool f
|
||||
// each type.
|
||||
newTypes.clear();
|
||||
const char *type;
|
||||
for (int32 i = 0; types->FindString(kTypesField, &type) == B_OK; i++) {
|
||||
for (int32 i = 0;
|
||||
types->FindString(kTypesField, i, &type) == B_OK;
|
||||
i++) {
|
||||
newTypes.insert(type);
|
||||
AddSupportingApp(type, app);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user