securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp
branchRCL_3
changeset 10 ece4bbb094df
parent 5 3b17fc5c9564
child 46 94b923fa11ed
--- a/securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp	Fri Mar 12 15:46:51 2010 +0200
+++ b/securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp	Mon Mar 15 12:43:21 2010 +0200
@@ -257,7 +257,7 @@
     res = iWait->WaitForRequestL();
     User::LeaveIfError(res);
     // ask pin
-    if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+    if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
             res = dlg->ExecuteLD(R_PIN_QUERY);
     else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
        {
@@ -431,7 +431,7 @@
         res = iWait->WaitForRequestL();
         User::LeaveIfError(res);
             
-        if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+        if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
             res = dlg->ExecuteLD(R_UPIN_QUERY);
         else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
             {