gio: return '*' content type on win32 from unknown mime

This fixes test_unknown.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-01-22 01:17:37 +04:00
parent 9f2660fbae
commit b3379557af

View File

@ -342,7 +342,8 @@ g_content_type_from_mime_type (const gchar *mime_type)
content_type = get_registry_classes_key (key, L"Extension");
g_free (key);
return content_type;
return content_type ? g_steal_pointer (&content_type) : g_strdup ("*");
}
gchar *