diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-30 16:16:48 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-30 16:16:48 +0000 |
commit | 9397f392c0ed4d0a5e07b70ecbe11a29a843955e (patch) | |
tree | 998e52a39609aa2d6b3c407f9078166388041b50 /amiga/filetype.c | |
parent | 624af3890b9059c89367d8007ea2bd92da127ef7 (diff) | |
download | netsurf-9397f392c0ed4d0a5e07b70ecbe11a29a843955e.tar.gz netsurf-9397f392c0ed4d0a5e07b70ecbe11a29a843955e.tar.bz2 |
Convert the supplied MIME type to the DefIcons type *before* doing the comparison
svn path=/trunk/netsurf/; revision=12448
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r-- | amiga/filetype.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c index 4a5d9aa62..b9a8d1d54 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -529,13 +529,17 @@ bool ami_mime_compare(struct hlcache_handle *c, const char *type) bool ret = false; lwc_error lerror; lwc_string *filetype; + lwc_string *mime_filetype; lwc_string *mime = content_get_mime_type(c); + if(ami_mime_to_filetype(mime, &mime_filetype, NULL) == NULL) + return false; + lerror = lwc_intern_string(type, strlen(type), &filetype); if (lerror != lwc_error_ok) return false; - lerror = lwc_string_isequal(filetype, mime, &ret); + lerror = lwc_string_isequal(filetype, mime_filetype, &ret); if (lerror != lwc_error_ok) return false; |