winemenubuilder: ignore Windows MIME types without a slash
Damjan Jovanovic
damjan.jov at gmail.com
Thu Oct 22 12:38:37 CDT 2009
Changelog:
* winemenubuilder: ignore Windows MIME types without a slash
Some apps (eg. Google Sketchup) produce a bad MIME type like "SKPKMZ"
which fd.o apps don't like. Generate our own instead in that case.
Closes #20437.
Damjan Jovanovic
-------------- next part --------------
diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c
index ba6fa64..061f3fd 100644
--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
@@ -1941,7 +1941,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
if (mimeTypeA == NULL)
{
- if (contentTypeW != NULL)
+ if (contentTypeW != NULL && strchrW(contentTypeW, (WCHAR)'/'))
mimeTypeA = wchars_to_utf8_chars(contentTypeW);
else
mimeTypeA = heap_printf("application/x-wine-extension-%s", &extensionA[1]);
More information about the wine-patches
mailing list