1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Windows: rename PIN to PIM to avoid confusion. Better error messages.

This commit is contained in:
Mounir IDRASSI
2015-06-08 01:14:57 +02:00
parent 00cd134720
commit a7a8d57bca
17 changed files with 140 additions and 140 deletions

View File

@@ -10738,8 +10738,8 @@ int GetPin (HWND hwndDlg, UINT ctrlId)
int pin = 0;
if (IsWindowEnabled (GetDlgItem (hwndDlg, ctrlId)))
{
char szTmp[MAX_PIN + 1] = {0};
if (GetDlgItemText (hwndDlg, ctrlId, szTmp, MAX_PIN + 1) > 0)
char szTmp[MAX_PIM + 1] = {0};
if (GetDlgItemText (hwndDlg, ctrlId, szTmp, MAX_PIM + 1) > 0)
{
char* endPtr = NULL;
pin = strtol(szTmp, &endPtr, 10);
@@ -10754,7 +10754,7 @@ void SetPin (HWND hwndDlg, UINT ctrlId, int pin)
{
if (pin > 0)
{
char szTmp[MAX_PIN + 1];
char szTmp[MAX_PIM + 1];
StringCbPrintfA (szTmp, sizeof(szTmp), "%d", pin);
SetDlgItemText (hwndDlg, ctrlId, szTmp);
}