Marcus Meissner : gdi32: Fix possible NULL ptr in TRACE.
Module: wine Branch: master Commit: a63664f1ecc54db63fb19eafdcfe390583490485 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a63664f1ecc54db63fb19eafdc... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Sun Jan 20 20:59:16 2008 +0100 gdi32: Fix possible NULL ptr in TRACE. --- dlls/gdi32/font.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 2789df5..5cec471 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -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;
participants (1)
-
Alexandre Julliard