diff --git a/Sources/Engine/Base/CTString.cpp b/Sources/Engine/Base/CTString.cpp old mode 100644 new mode 100755 index 467bcfb..2caeeab --- a/Sources/Engine/Base/CTString.cpp +++ b/Sources/Engine/Base/CTString.cpp @@ -638,8 +638,10 @@ BOOL CTString::Matches(const char *strOther) const } else { q = 0; } - - if ((tolower(*m) != tolower(*n)) && ((*m != '?') || q)) { + + // also, '\\' in mask should match '/' in name, for unix compatibility + if (((tolower(*m) != tolower(*n)) && ((*m!='\\') && (*n!='/'))) + && ((*m != '?') || q)) { if (!wild) { return FALSE; }