From a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 8 Jun 2015 01:14:57 +0200 Subject: Windows: rename PIN to PIM to avoid confusion. Better error messages. --- src/Common/Dlgcode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Common/Dlgcode.c') 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); } -- cgit v1.2.3