[PATCH 2/5] dwrite: Lowercase locale names in localized strings pairs.

Nikolay Sivov nsivov at codeweavers.com
Wed Mar 10 03:30:26 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c
index 4e308485a01..ea5a8e018cc 100644
--- a/dlls/dwrite/main.c
+++ b/dlls/dwrite/main.c
@@ -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++;
 
-- 
2.30.1




More information about the wine-devel mailing list