From 9397f392c0ed4d0a5e07b70ecbe11a29a843955e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 30 May 2011 16:16:48 +0000 Subject: Convert the supplied MIME type to the DefIcons type *before* doing the comparison svn path=/trunk/netsurf/; revision=12448 --- amiga/filetype.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga') 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; -- cgit v1.2.3