Commit 902cce12 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comdlg32: Prevent a NULL pointer dereference (Coverity).

parent 38d4034d
......@@ -903,7 +903,6 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFO
int i;
long l;
HDC hdc;
LPLOGFONTW lpxx=lpcf->lpLogFont;
if (!lpcf) return FALSE;
......@@ -965,6 +964,7 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFO
{
WCHAR str[256];
WINDOWINFO wininfo;
LPLOGFONTW lpxx=lpcf->lpLogFont;
TRACE("WM_COMMAND/cmb2,3 =%08lX\n", lParam);
i=SendDlgItemMessageW(hDlg,cmb1,CB_GETCURSEL,0,0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment