mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
comdlg32: Correctly report the filter.
This commit is contained in:
parent
6072a69d38
commit
31b9fefe0e
@ -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 );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user