mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 00:39:06 +00:00
comdlg32: Prevent a NULL pointer dereference (Coverity).
This commit is contained in:
parent
38d4034d94
commit
902cce122a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user