André Hentschel : comdlg32: Correctly report the filter.
Alexandre Julliard
julliard at winehq.org
Mon Jun 7 10:02:30 CDT 2010
Module: wine
Branch: master
Commit: 31b9fefe0e0eeca5042742814926454d92e0de1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=31b9fefe0e0eeca5042742814926454d92e0de1f
Author: André Hentschel <nerv at 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 );
}
/***********************************************************************
More information about the wine-cvs
mailing list