Diff of /corelib/PWCharPool.cpp [55f3b0] .. [ec62bb]  Maximize  Restore

  Switch to side-by-side view

--- a/corelib/PWCharPool.cpp
+++ b/corelib/PWCharPool.cpp
@@ -10,6 +10,7 @@
 
 #include "PWCharPool.h"
 #include "Util.h"
+#include "corelib.h"
 #include "PWSrand.h"
 
 // Following macro get length of std_*_chars less the trailing \0
@@ -238,7 +239,7 @@
   int length = pwd.GetLength();
   // check for minimun length
   if (length < MinLength) {
-    error = _T("Password is too short");
+    error.LoadString(IDSC_PASSWORDTOOSHORT);
     return false;
   }
 
@@ -256,7 +257,7 @@
   if (has_uc && has_lc && (has_digit || has_other)) {
     return true;
   } else {
-    error = _T("Password should be mixed case, with at least one digit or punctuation character");
+    error.LoadString(IDSC_PASSWORDPOOR);
     return false;
   }
 }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks