securitydialogs/SecUi/Src/SecUiSecurityHandler.cpp
branchRCL_3
changeset 10 ece4bbb094df
parent 1 d5423fbb4f29
child 13 bbcfd14ce6a7
--- a/securitydialogs/SecUi/Src/SecUiSecurityHandler.cpp	Fri Mar 12 15:46:51 2010 +0200
+++ b/securitydialogs/SecUi/Src/SecUiSecurityHandler.cpp	Mon Mar 15 12:43:21 2010 +0200
@@ -223,7 +223,7 @@
     RDebug::Printf( "%s %s (%u) currentLockStatus=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, currentLockStatus );
     #endif
     delete repository;
-    if(res==0 && currentLockStatus==1)
+    if(res==0 && currentLockStatus>=1 )
         {
         // code is the default one; no need to request it.
         return ETrue;
@@ -1248,7 +1248,7 @@
         #endif
         User::LeaveIfError(res);
         
-        if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+        if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
             res = iSecurityDlg->ExecuteLD(R_PIN_REQUEST_QUERY);
         else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
             {
@@ -1300,7 +1300,7 @@
         CSecUiLockObserver* queryStatusObserver = CSecUiLockObserver::NewL(iSecurityDlg, ESecUiRequestStateObserver);
         CleanupStack::PushL(queryStatusObserver);
         
-        if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+        if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
             res = iSecurityDlg->ExecuteLD(R_PIN_QUERY);
         else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
             {
@@ -1928,7 +1928,7 @@
             res = wait->WaitForRequestL();
             User::LeaveIfError(res);
             
-            if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+            if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
                 res = iSecurityDlg->ExecuteLD(R_UPIN_REQUEST_QUERY);
             else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
                 {
@@ -1974,7 +1974,7 @@
     		CSecUiLockObserver* queryStatusObserver = CSecUiLockObserver::NewL(iSecurityDlg, ESecUiRequestStateObserver);
             CleanupStack::PushL(queryStatusObserver);
             
-            if(codeInfo.iRemainingEntryAttempts == KMaxNumberOfPINAttempts)
+            if( codeInfo.iRemainingEntryAttempts >= KMaxNumberOfPINAttempts )
                 res = iSecurityDlg->ExecuteLD(R_UPIN_QUERY);
             else if(codeInfo.iRemainingEntryAttempts > KLastRemainingInputAttempt)
                 {