http://bugs.winehq.org/show_bug.cgi?id=16356
--- Comment #3 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-12-07 22:22:36 --- It looks like the combobox should set the dialog filter index when it changes but it does not. Before the patch the file name was set to the filter and then used by scandir. Now it is done the correct way but with the wrong (default) filter index.
With my limited knowledge of how the 16 to 32 bit stuff is handled along with not knowing enough of the WINAPI it will be a while (at least 2 weeks) before I have any free time to investigate much further. In FD31_FileTypeChange it needs to query the combobox with the filter str to get the index then set nFilterIndex to the new index.
traces with some additional data and traces added
trace:commdlg:FD31_WMInitDialog add str=L"txt" associated to L"*.txt" trace:commdlg:FD31_WMInitDialog add str=L"all" associated to L"*.*" ... trace:commdlg:FD31_FileTypeChange Selected filter : L"*.*" trace:commdlg:FD31_Validate got filename = L"File.txt" trace:commdlg:FD31_TestPath before scandir trace:commdlg:FD31_ScanDir Trying to change to L"File.txt\" filter L"txt" filterinx 1