diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-08 01:14:57 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-08 01:16:34 +0200 |
commit | a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780 (patch) | |
tree | 457161e7fefc61ee391ab2bd99f6f728b3b4a688 /src/Mount/Favorites.cpp | |
parent | 00cd134720f754f008fdc541afdd9ab70f6d11da (diff) | |
download | VeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.tar.gz VeraCrypt-a7a8d57bcaaaf4e5982d2e51cd3086d34f45f780.zip |
Windows: rename PIN to PIM to avoid confusion. Better error messages.
Diffstat (limited to 'src/Mount/Favorites.cpp')
-rw-r--r-- | src/Mount/Favorites.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Mount/Favorites.cpp b/src/Mount/Favorites.cpp index 6fe871a0..1b6c59b3 100644 --- a/src/Mount/Favorites.cpp +++ b/src/Mount/Favorites.cpp @@ -775,12 +775,12 @@ namespace VeraCrypt {
if (favorite.Pin > 0)
{
- char szTmp[MAX_PIN + 1];
+ char szTmp[MAX_PIM + 1];
StringCbPrintfA (szTmp, sizeof(szTmp), "%d", favorite.Pin);
- SetDlgItemText (hwndDlg, IDC_PIN, szTmp);
+ SetDlgItemText (hwndDlg, IDC_PIM, szTmp);
}
else
- SetDlgItemText (hwndDlg, IDC_PIN, "");
+ SetDlgItemText (hwndDlg, IDC_PIM, "");
SetDlgItemTextW (hwndDlg, IDC_FAVORITE_LABEL, favorite.Label.c_str());
SetCheckBox (hwndDlg, IDC_FAVORITE_MOUNT_ON_LOGON, favorite.MountOnLogOn);
SetCheckBox (hwndDlg, IDC_FAVORITE_MOUNT_ON_ARRIVAL, favorite.MountOnArrival);
@@ -806,9 +806,9 @@ namespace VeraCrypt EnableWindow (GetDlgItem (hwndDlg, IDC_FAVORITE_MOVE_UP), enable);
EnableWindow (GetDlgItem (hwndDlg, IDC_FAVORITE_MOVE_DOWN), enable);
EnableWindow (GetDlgItem (hwndDlg, IDC_FAVORITE_REMOVE), enable);
- EnableWindow (GetDlgItem (hwndDlg, IDT_PIN), enable);
- EnableWindow (GetDlgItem (hwndDlg, IDC_PIN), enable);
- EnableWindow (GetDlgItem (hwndDlg, IDC_PIN_HELP), enable);
+ EnableWindow (GetDlgItem (hwndDlg, IDT_PIM), enable);
+ EnableWindow (GetDlgItem (hwndDlg, IDC_PIM), enable);
+ EnableWindow (GetDlgItem (hwndDlg, IDC_PIM_HELP), enable);
EnableWindow (GetDlgItem (hwndDlg, IDT_FAVORITE_LABEL), enable);
EnableWindow (GetDlgItem (hwndDlg, IDC_FAVORITE_LABEL), enable);
EnableWindow (GetDlgItem (hwndDlg, IDC_FAVORITE_MOUNT_ON_LOGON), enable && !systemFavoritesMode);
@@ -836,7 +836,7 @@ namespace VeraCrypt else
favorite.Label.clear();
- favorite.Pin = GetPin (hwndDlg, IDC_PIN);
+ favorite.Pin = GetPin (hwndDlg, IDC_PIM);
favorite.ReadOnly = (IsDlgButtonChecked (hwndDlg, IDC_FAVORITE_MOUNT_READONLY) != 0);
favorite.Removable = (IsDlgButtonChecked (hwndDlg, IDC_FAVORITE_MOUNT_REMOVABLE) != 0);
|