Jiangyi Chen : gdi32: Delete the external font reg key when face's name matches but the file path does not.

Alexandre Julliard julliard at winehq.org
Mon May 24 15:59:53 CDT 2021


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

Author: Jiangyi Chen <cjy520lcy at 163.com>
Date:   Mon May 24 11:30:46 2021 +0100

gdi32: Delete the external font reg key when face's name matches but the file path does not.

Signed-off-by: Jiangyi Chen <chenjiangyi at uniontech.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/font.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 2d2831ec725..49775b7a806 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -7881,9 +7881,9 @@ static void update_external_font_keys(void)
     {
         if (type != REG_SZ) goto next;
         if ((tmp = wcsrchr( value, ' ' )) && !facename_compare( tmp, L" (TrueType)", -1 )) *tmp = 0;
-        if ((face = find_face_from_full_name( value )))
+        if ((face = find_face_from_full_name( value )) && !wcsicmp( face->file, path ))
         {
-            if (!wcsicmp( face->file, path )) face->flags |= ADDFONT_EXTERNAL_FOUND;
+            face->flags |= ADDFONT_EXTERNAL_FOUND;
             goto next;
         }
         if (tmp && !*tmp) *tmp = ' ';




More information about the wine-cvs mailing list