mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
WINTERMUTE: Fix StringUtil::StartsWith
This commit is contained in:
@@ -255,7 +255,7 @@ bool StringUtil::StartsWith(const AnsiString &str, const AnsiString &pattern, bo
|
||||
return false;
|
||||
|
||||
AnsiString startPart(str.c_str(), patternLength);
|
||||
uint32 likeness = str.compareToIgnoreCase(pattern.c_str());
|
||||
uint32 likeness = startPart.compareToIgnoreCase(pattern.c_str());
|
||||
return (likeness == 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user