Commit 10356abd authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

comdlg32: Avoid a NULL dereference when changing the file type selection of a…

comdlg32: Avoid a NULL dereference when changing the file type selection of a Unicode Win3.1-style dialog.
parent 4e49518a
......@@ -630,7 +630,8 @@ static LRESULT FD31_FileTypeChange( const FD31_DATA *lfs )
if (lRet == LB_ERR)
return TRUE;
lfs->ofnW->nFilterIndex = lRet + 1;
lfs->ofnA->nFilterIndex = lRet + 1;
if (lfs->ofnA)
lfs->ofnA->nFilterIndex = lRet + 1;
pstr = (LPWSTR)SendDlgItemMessageW(lfs->hwnd, cmb1, CB_GETITEMDATA, lRet, 0);
TRACE("Selected filter : %s\n", debugstr_w(pstr));
......
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