On Fri Jul 25 03:20:21 2025 +0000, Maotong Zhang wrote:
Test code: executes filedialog_change_filetype() to first detect "fname1", and then detects "fname1 (*. txt)". If "fname1 (*. txt) " exists, it will also fail. Modify code :add "(*. txt)" to pszName that does not have "(*. txt)". Only "fname1 (*. txt)" exists, without "fname1", resulting in test failure. Can the test code program be modify directly determine "fname1 (*. txt)" ? If the pszName is not modify in IFileDialog2_fnSetFileTypes. Can be used: on_wm_initdialog() --> SendMessageW(CB_ADDSTRING), add "(*. txt)" before sending, do not modify the original data of pszName. How can I do it.
I am suspicious of the test. Which string succeeds in finding the combo box on current Windows? I think it might be the one marked as "broken".