inetcomm: Charset name comparison should be case insensitive.
This commit is contained in:
parent
014fb479bc
commit
ed8b219c68
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue