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:
Jiangyi Chen 2021-05-24 11:30:46 +01:00 committed by Alexandre Julliard
parent 3e08cebeee
commit d7b9b306cb
1 changed files with 2 additions and 2 deletions

View File

@ -7881,9 +7881,9 @@ static void update_external_font_keys(void)
{ {
if (type != REG_SZ) goto next; if (type != REG_SZ) goto next;
if ((tmp = wcsrchr( value, ' ' )) && !facename_compare( tmp, L" (TrueType)", -1 )) *tmp = 0; 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; goto next;
} }
if (tmp && !*tmp) *tmp = ' '; if (tmp && !*tmp) *tmp = ' ';