Alexandre Julliard : gdi32: Don't create font substitutes for identical names.

Alexandre Julliard julliard at winehq.org
Mon Dec 14 15:51:17 CST 2020


Module: wine
Branch: master
Commit: 057b4b41483fc03fb0518195c8115ac1305eb716
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=057b4b41483fc03fb0518195c8115ac1305eb716

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec 14 16:54:55 2020 +0100

gdi32: Don't create font substitutes for identical names.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/font.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 5da8b620fd4..764eb110086 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -605,7 +605,7 @@ static struct gdi_font_family *create_family( const WCHAR *name, const WCHAR *se
 
     family->refcount = 1;
     lstrcpynW( family->family_name, name, LF_FACESIZE );
-    if (second_name && second_name[0])
+    if (second_name && second_name[0] && wcsicmp( name, second_name ))
     {
         lstrcpynW( family->second_name, second_name, LF_FACESIZE );
         add_gdi_font_subst( second_name, -1, name, -1 );




More information about the wine-cvs mailing list