[PATCH v2 5/8] gdi32: Use win32u_wcsicmp instead of RtlCompareUnicodeStrings.
Huw Davies
huw at codeweavers.com
Mon Oct 4 09:03:17 CDT 2021
From: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/gdi32/freetype.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index d8bae670d7f..bd4a29bb723 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1277,13 +1277,11 @@ static struct unix_face *unix_face_create( const char *unix_name, void *data_ptr
This->second_name = ft_face_get_family_name( This->ft_face, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) );
/* try to find another secondary name, preferring the lowest langids */
- if (!RtlCompareUnicodeStrings( This->family_name, lstrlenW( This->family_name ),
- This->second_name, lstrlenW( This->second_name ), TRUE ))
+ if (!wcsicmp( This->family_name, This->second_name ))
{
free( This->second_name );
This->second_name = ft_face_get_family_name( This->ft_face, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) );
- if (!RtlCompareUnicodeStrings( This->family_name, lstrlenW( This->family_name ),
- This->second_name, lstrlenW( This->second_name ), TRUE ))
+ if (!wcsicmp( This->family_name, This->second_name ))
{
free( This->second_name );
This->second_name = NULL;
--
2.23.0
More information about the wine-devel
mailing list