Commit d7b9b306 authored by Jiangyi Chen's avatar Jiangyi Chen Committed by Alexandre Julliard

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

parent 3e08cebe
......@@ -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 = ' ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment