dwrite: Lowercase locale names in localized strings pairs.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-03-10 12:30:26 +03:00 committed by Alexandre Julliard
parent 2d8f32be7d
commit 98608f2099
1 changed files with 2 additions and 1 deletions

View File

@ -468,7 +468,7 @@ HRESULT add_localizedstring(IDWriteLocalizedStrings *iface, const WCHAR *locale,
if (*locale)
{
for (i = 0; i < count; i++)
if (!strcmpW(strings->data[i].locale, locale))
if (!lstrcmpiW(strings->data[i].locale, locale))
return S_OK;
}
@ -483,6 +483,7 @@ HRESULT add_localizedstring(IDWriteLocalizedStrings *iface, const WCHAR *locale,
heap_free(strings->data[count].string);
return E_OUTOFMEMORY;
}
strlwrW(strings->data[count].locale);
strings->count++;