inetcomm: Avoid a compiler warning.

This commit is contained in:
Alexandre Julliard 2008-09-12 17:09:07 +02:00
parent bba2221426
commit 9099c212d1
1 changed files with 2 additions and 3 deletions

View File

@ -168,9 +168,6 @@ static HRESULT WINAPI MimeInternat_GetCodePageCharset(IMimeInternational *iface,
*phCharset = NULL;
if(ctCsetType < CHARSET_BODY || ctCsetType > CHARSET_WEB)
return MIME_E_INVALID_CHARSET_TYPE;
hr = mlang_getcodepageinfo(cpiCodePage, &mlang_cp_info);
if(SUCCEEDED(hr))
{
@ -189,6 +186,8 @@ static HRESULT WINAPI MimeInternat_GetCodePageCharset(IMimeInternational *iface,
case CHARSET_WEB:
charset_nameW = mlang_cp_info.wszWebCharset;
break;
default:
return MIME_E_INVALID_CHARSET_TYPE;
}
len = WideCharToMultiByte(CP_ACP, 0, charset_nameW, -1, NULL, 0, NULL, NULL);
charset_name = HeapAlloc(GetProcessHeap(), 0, len);