comdlg32: Move NULL check before use (Coverity).
This commit is contained in:
parent
f3dbf490a7
commit
06ec62d9c7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue