Use CString::StartsWith()

Replace the use of deprecated CString::Equals(str,bool,int) by
CString::StartsWith(str,cs) which is more pleasant to read.
This commit is contained in:
J-P Nurmi
2015-02-18 00:42:25 +01:00
parent a8b9542925
commit 00b1a7eedf
15 changed files with 24 additions and 28 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ CString CUtils::GetSaltedHashPass(CString& sSalt) {
CString pass2 = CUtils::GetPass("Confirm password");
if (!pass1.Equals(pass2, true)) {
if (!pass1.Equals(pass2, CString::CaseSensitive)) {
CUtils::PrintError("The supplied passwords did not match");
} else {
// Construct the salted pass