diff --git a/ModernDialogs/ModernDialogs.cpp b/ModernDialogs/ModernDialogs.cpp index dcdc0fa..14688e6 100644 --- a/ModernDialogs/ModernDialogs.cpp +++ b/ModernDialogs/ModernDialogs.cpp @@ -991,7 +991,7 @@ bool FilenameValid(const std::string_view filenameWithoutPath) return std::all_of(filenameWithoutPath.cbegin(), filenameWithoutPath.cend(), [](const char c) { - return c != '\\' && c != '/' && c == ':' && c == '*' && c == '?' && + return c != '\\' && c != '/' && c != ':' && c != '*' && c != '?' && c != '\"' && c != '<' && c != '>' && c != '|'; }); }