comdlg32: Move NULL check before use (Coverity).

This commit is contained in:
Paul Vriens 2006-10-07 16:48:49 +02:00 committed by Alexandre Julliard
parent f3dbf490a7
commit 06ec62d9c7
1 changed files with 4 additions and 3 deletions

View File

@ -174,12 +174,13 @@ BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16 lpChFont)
LOGFONT16 *font16;
SEGPTR lpTemplateName;
TRACE("ChooseFont\n");
if (!lpChFont) return FALSE;
cf32w.lpLogFont=&lf32w;
CFn_CHOOSEFONT16to32W(lpChFont, &cf32w);
TRACE("ChooseFont\n");
if (!lpChFont) return FALSE;
if (TRACE_ON(commdlg))
_dump_cf_flags(lpChFont->Flags);