Change CTString.Match to treat backslashes as slash (fixes Netrisca categories for new messages)

This commit is contained in:
ptitSeb 2016-04-09 14:15:33 +02:00
parent 87a67eccf5
commit 98ebac941a

6
Sources/Engine/Base/CTString.cpp Normal file → Executable file
View File

@ -638,8 +638,10 @@ BOOL CTString::Matches(const char *strOther) const
} else { } else {
q = 0; 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) { if (!wild) {
return FALSE; return FALSE;
} }