mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 19:55:54 +01:00
Change CTString.Match to treat backslashes as slash (fixes Netrisca categories for new messages)
This commit is contained in:
parent
87a67eccf5
commit
98ebac941a
6
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
6
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user