WINTERMUTE: Fix StringUtil::StartsWith

This commit is contained in:
Einar Johan Trøan Sømåen
2012-06-18 18:39:28 +02:00
parent 03aadc3ce1
commit ece5997fc3
+1 -1
View File
@@ -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);
}
}