comdlg32: Correctly report the filter.

This commit is contained in:
André Hentschel 2010-06-04 18:00:12 +02:00 committed by Alexandre Julliard
parent 6072a69d38
commit 31b9fefe0e

View File

@ -629,10 +629,12 @@ static LRESULT FD31_FileTypeChange( const FD31_DATA *lfs )
lRet = SendDlgItemMessageW(lfs->hwnd, cmb1, CB_GETCURSEL, 0, 0);
if (lRet == LB_ERR)
return TRUE;
lfs->ofnW->nFilterIndex = lRet + 1;
lfs->ofnA->nFilterIndex = lRet + 1;
pstr = (LPWSTR)SendDlgItemMessageW(lfs->hwnd, cmb1, CB_GETITEMDATA, lRet, 0);
TRACE("Selected filter : %s\n", debugstr_w(pstr));
return FD31_Validate( lfs, NULL, cmb1, lRet, TRUE );
return FD31_Validate( lfs, pstr, cmb1, lRet, TRUE );
}
/***********************************************************************