Now use the mimetype of the file linked and not the link itself

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-03-18 08:20:36 +00:00
parent 3d6ebe9645
commit e6efcd0fdb

View File

@ -154,7 +154,8 @@ ExpanderRules::MatchingRule(BString &fileName, const char *filetype)
ExpanderRule *
ExpanderRules::MatchingRule(const entry_ref *ref)
{
BNode node(ref);
BEntry entry(ref, true);
BNode node(&entry);
BNodeInfo nodeInfo(&node);
char type[B_MIME_TYPE_LENGTH];
nodeInfo.GetType(type);