gdi32: Delete the external font reg key when face's name matches but the file path does not.
Signed-off-by: Jiangyi Chen <chenjiangyi@uniontech.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3e08cebeee
commit
d7b9b306cb
|
@ -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 = ' ';
|
||||
|
|
Loading…
Reference in New Issue