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:
@@ -141,7 +141,9 @@ SupportingApps::SetSupportedTypes(const char *app, const BMessage *types, bool f
|
|||||||
// each type.
|
// each type.
|
||||||
newTypes.clear();
|
newTypes.clear();
|
||||||
const char *type;
|
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);
|
newTypes.insert(type);
|
||||||
AddSupportingApp(type, app);
|
AddSupportingApp(type, app);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user