inetcomm: Implement IMimeInternational_GetCharsetInfo.

This commit is contained in:
Huw Davies 2008-09-10 14:11:29 +01:00 committed by Alexandre Julliard
parent 9229c19d01
commit 12bb6e481f
1 changed files with 21 additions and 2 deletions

View File

@ -207,8 +207,27 @@ static HRESULT WINAPI MimeInternat_FindCharset(IMimeInternational *iface, LPCSTR
static HRESULT WINAPI MimeInternat_GetCharsetInfo(IMimeInternational *iface, HCHARSET hCharset,
LPINETCSETINFO pCsetInfo)
{
FIXME("stub\n");
return E_NOTIMPL;
internat *This = impl_from_IMimeInternational( iface );
HRESULT hr = MIME_E_INVALID_HANDLE;
charset_entry *charset;
TRACE("(%p)->(%p, %p)\n", iface, hCharset, pCsetInfo);
EnterCriticalSection(&This->cs);
LIST_FOR_EACH_ENTRY(charset, &This->charsets, charset_entry, entry)
{
if(charset->cs_info.hCharset == hCharset)
{
*pCsetInfo = charset->cs_info;
hr = S_OK;
break;
}
}
LeaveCriticalSection(&This->cs);
return hr;
}
static HRESULT WINAPI MimeInternat_GetCodePageInfo(IMimeInternational *iface, CODEPAGEID cpiCodePage,