comdlg32: Prevent a NULL pointer dereference (Coverity).

This commit is contained in:
Paul Vriens 2010-07-08 19:50:26 +02:00 committed by Alexandre Julliard
parent 38d4034d94
commit 902cce122a
1 changed files with 1 additions and 1 deletions

View File

@ -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);