Commit 98608f20 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Lowercase locale names in localized strings pairs.

parent 2d8f32be
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment