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

This commit is contained in:
Aric Stewart 2007-03-02 11:04:12 +09:00 committed by Alexandre Julliard
parent d0e8d6a7ba
commit 2967524bdb
1 changed files with 1 additions and 1 deletions

View File

@ -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);