wxwidgets/tests/file
Vadim Zeitlin 3181f1988d Fix using *.* in wxDir under MSW
Using "*.*" as a wildcard is supposed to match everything under MSW, but
ever since the changes of 4daceaacbd (Check that files returned from
wxDir::FindXXX() match the filter., 2013-04-08, see #3432) it only
matched the files with extension because we double-checked the match
returned by the native MSW function (which does handle "*.*" correctly)
using our own wxString::Matches() which doesn't handle it specially.

Fix this by skipping the call to Matches() when "*.*" is used: we know
that this wildcard matches everything, so rechecking the match would be
useless at best, even if it were not actively harmful. And also skip
this call for "*" because calling Matches("*") always succeeds anyhow.

This also fixes the same bug in wxFind{First,Next}File() and any other
code using them such as wx{File,Dir}Ctrl.

Closes #23905.
2023-09-27 15:33:32 +02:00
..
dir.cpp Fix using *.* in wxDir under MSW 2023-09-27 15:33:32 +02:00
filefn.cpp Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00
filetest.cpp Remove wxUSE_UNICODE checks as they're always true now 2022-10-27 19:43:30 +02:00