gdi32: Fix possible NULL ptr in TRACE.

This commit is contained in:
Marcus Meissner 2008-01-20 20:59:16 +01:00 committed by Alexandre Julliard
parent 67815c6b9e
commit a63664f1ec
1 changed files with 3 additions and 2 deletions

View File

@ -848,8 +848,9 @@ static INT FONT_EnumFontFamiliesEx( HDC hDC, LPLOGFONTW plf,
if (!dc) return 0;
TRACE("lfFaceName = %s lfCharset = %d\n", debugstr_w(plf->lfFaceName),
plf->lfCharSet);
if (plf)
TRACE("lfFaceName = %s lfCharset = %d\n", debugstr_w(plf->lfFaceName),
plf->lfCharSet);
fe32.lpLogFontParam = plf;
fe32.lpEnumFunc = efproc;
fe32.lpData = lParam;