Win: Fix adding '.*' to filename in callback.

This commit is contained in:
Haojian Wu 2015-10-27 20:03:28 +08:00
parent fa24e15d8b
commit f69bafd48a

View file

@ -272,7 +272,8 @@ bool ShowSaveDialog(atom::NativeWindow* parent_window,
bool matched = false;
for (size_t i = 0; i < filter.second.size(); ++i) {
if (base::EndsWith(file_name, filter.second[i], false)) {
if (filter.second[i] == "*" ||
base::EndsWith(file_name, filter.second[i], false)) {
matched = true;
break;;
}