mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-04-01 11:40:05 +02:00
Change CTString.Match to treat backslashes as slash (fixes Netrisca categories for new messages)
This commit is contained in:
parent
87a67eccf5
commit
98ebac941a
4
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
4
Sources/Engine/Base/CTString.cpp
Normal file → Executable file
@ -639,7 +639,9 @@ BOOL CTString::Matches(const char *strOther) const
|
||||
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…
x
Reference in New Issue
Block a user