From 2e125090810014fa46cd9bb27b2e4daea32ba2f4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Feb 2019 23:04:21 +0300 Subject: MIME types are of type char, not wchar_t --- include/m_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index a13d9fc118..65a24c3eab 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -324,10 +324,10 @@ MIR_APP_DLL(int) ProtoGetAvatarFormat(const wchar_t *ptszFileName); MIR_APP_DLL(int) ProtoGetAvatarFileFormat(const wchar_t *ptszFileName); // returns the mime type according to a picture type (PA_*) passed -MIR_APP_DLL(const wchar_t*) ProtoGetAvatarMimeType(int iFileType); +MIR_APP_DLL(const char*) ProtoGetAvatarMimeType(int iFileType); // returns the picture type (PA_*) according to a mime type passed -MIR_APP_DLL(int) ProtoGetAvatarFormatByMimeType(const wchar_t *pwszMimeType); +MIR_APP_DLL(int) ProtoGetAvatarFormatByMimeType(const char *pwszMimeType); // returns the image format and extension by the first bytes of picture // ptszExtension might be NULL -- cgit v1.2.3