gdi32: Use win32u_wcsicmp instead of RtlCompareUnicodeStrings.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fb6421f229
commit
f79ed7b41f
|
@ -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) );
|
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 */
|
/* try to find another secondary name, preferring the lowest langids */
|
||||||
if (!RtlCompareUnicodeStrings( This->family_name, lstrlenW( This->family_name ),
|
if (!wcsicmp( This->family_name, This->second_name ))
|
||||||
This->second_name, lstrlenW( This->second_name ), TRUE ))
|
|
||||||
{
|
{
|
||||||
free( This->second_name );
|
free( This->second_name );
|
||||||
This->second_name = ft_face_get_family_name( This->ft_face, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) );
|
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 ),
|
if (!wcsicmp( This->family_name, This->second_name ))
|
||||||
This->second_name, lstrlenW( This->second_name ), TRUE ))
|
|
||||||
{
|
{
|
||||||
free( This->second_name );
|
free( This->second_name );
|
||||||
This->second_name = NULL;
|
This->second_name = NULL;
|
||||||
|
|
Loading…
Reference in New Issue