diff -r 6e226572c5f0 -r ece4bbb094df securitydialogs/SecUi/Src/SecUiSecuritySettings.cpp --- 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) {