Commit 2967524b authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

gdi32: Don't fail replacement on no localized family name.

parent d0e8d6a7
......@@ -1013,7 +1013,7 @@ static BOOL AddFontFileToList(const char *file, char *fake_family, const WCHAR *
if (target_family)
{
localised_family = get_familyname(ft_face);
if (lstrcmpW(localised_family,target_family)!=0)
if (localised_family && lstrcmpW(localised_family,target_family)!=0)
{
TRACE("Skipping Index %i: Incorrect Family name for replacement\n",(INT)face_index);
HeapFree(GetProcessHeap(), 0, localised_family);
......
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