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:
parent
3d6ebe9645
commit
e6efcd0fdb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user