VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-06-08 01:14:57 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-06-08 01:16:34 +0200
commita7a8d57bcaaaf4e5982d2e51cd3086d34f45f780 (patch)
tree457161e7fefc61ee391ab2bd99f6f728b3b4a688 /src/Common/Dlgcode.c
parent00cd134720f754f008fdc541afdd9ab70f6d11da (diff)
downloadVeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.tar.gz
VeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.zip
Windows: rename PIN to PIM to avoid confusion. Better error messages.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index cc66506c..246f35a6 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -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);
}