[PATCH] gdi32: Delete the external font reg key when face's name matches but the file path does not.
Huw Davies
huw at codeweavers.com
Mon May 24 05:30:46 CDT 2021
From: Jiangyi Chen <cjy520lcy at 163.com>
Signed-off-by: Jiangyi Chen <chenjiangyi at uniontech.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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 = ' ';
--
2.23.0
More information about the wine-devel
mailing list