inetcomm: Charset name comparison should be case insensitive.

This commit is contained in:
Huw Davies 2008-09-22 10:50:06 +01:00 committed by Alexandre Julliard
parent 014fb479bc
commit ed8b219c68
2 changed files with 4 additions and 1 deletions

View File

@ -250,7 +250,7 @@ static HRESULT WINAPI MimeInternat_FindCharset(IMimeInternational *iface, LPCSTR
LIST_FOR_EACH_ENTRY(charset, &This->charsets, charset_entry, entry)
{
if(!strcmp(charset->cs_info.szName, pszCharset))
if(!lstrcmpiA(charset->cs_info.szName, pszCharset))
{
*phCharset = charset->cs_info.hCharset;
hr = S_OK;

View File

@ -149,6 +149,9 @@ static void test_charset(void)
hr = IMimeInternational_FindCharset(internat, "windows-1252", &hcs);
ok(hr == S_OK, "got %08x\n", hr);
ok(hcs_windows_1252 == hcs, "got different hcharsets for the same name\n");
hr = IMimeInternational_FindCharset(internat, "WiNdoWs-1252", &hcs);
ok(hr == S_OK, "got %08x\n", hr);
ok(hcs_windows_1252 == hcs, "got different hcharsets for the same name\n");
hr = IMimeInternational_FindCharset(internat, "windows-1251", &hcs_windows_1251);
ok(hr == S_OK, "got %08x\n", hr);