Dont fail replacement on no localized family name
Aric Stewart
aric at codeweavers.com
Thu Mar 1 20:04:12 CST 2007
Some fonts appear to not have a localized family name. If that is the
case assume the replacement is correct just based on family name.
---
dlls/gdi32/freetype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index abcc0e6..8491f54 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1013,7 +1013,7 @@ static BOOL AddFontFileToList(const char
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);
More information about the wine-patches
mailing list