gdiplus: Print the GdipGetFamilyName FIXME only once.

This commit is contained in:
Vincent Povirk 2010-04-09 10:34:52 -05:00 committed by Alexandre Julliard
parent 9a4618a4ba
commit 541d7a5ab2
1 changed files with 3 additions and 1 deletions

View File

@ -643,12 +643,14 @@ GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily* FontFamily, GpFontFamily**
GpStatus WINGDIPAPI GdipGetFamilyName (GDIPCONST GpFontFamily *family, GpStatus WINGDIPAPI GdipGetFamilyName (GDIPCONST GpFontFamily *family,
WCHAR *name, LANGID language) WCHAR *name, LANGID language)
{ {
static int lang_fixme;
if (family == NULL) if (family == NULL)
return InvalidParameter; return InvalidParameter;
TRACE("%p, %p, %d\n", family, name, language); TRACE("%p, %p, %d\n", family, name, language);
if (language != LANG_NEUTRAL) if (language != LANG_NEUTRAL && !lang_fixme++)
FIXME("No support for handling of multiple languages!\n"); FIXME("No support for handling of multiple languages!\n");
lstrcpynW (name, family->FamilyName, LF_FACESIZE); lstrcpynW (name, family->FamilyName, LF_FACESIZE);