André Hentschel : comdlg32: Correctly report the filter.
Module: wine Branch: master Commit: 31b9fefe0e0eeca5042742814926454d92e0de1f URL: http://source.winehq.org/git/wine.git/?a=commit;h=31b9fefe0e0eeca50427428149... Author: André Hentschel <nerv(a)dawncrow.de> Date: Fri Jun 4 18:00:12 2010 +0200 comdlg32: Correctly report the filter. --- dlls/comdlg32/filedlg31.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/comdlg32/filedlg31.c b/dlls/comdlg32/filedlg31.c index 29c6310..fd2ef36 100644 --- a/dlls/comdlg32/filedlg31.c +++ b/dlls/comdlg32/filedlg31.c @@ -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 ); } /***********************************************************************
participants (1)
-
Alexandre Julliard