VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-15 23:04:40 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-10-18 14:17:09 (GMT)
commit97701eb2e9836105a27802c5f18ba3c63846755d (patch)
tree5fbde1523412365a3ee461b91335d5f72f4a6fb7
parent0a69062c6b87a9f704af836afc04844c95271966 (diff)
downloadVeraCrypt-97701eb2e9836105a27802c5f18ba3c63846755d.zip
VeraCrypt-97701eb2e9836105a27802c5f18ba3c63846755d.tar.gz
Windows: Ensure focus is always set to the drive list upon startup
-rw-r--r--src/Mount/Mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index cd82c08..c546b21 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -374,6 +374,10 @@ static void InitMainDialog (HWND hwndDlg)
if(nSelectedDriveIndex > SendMessage (GetDlgItem (hwndDlg, IDC_DRIVELIST), LVM_GETITEMCOUNT, 0, 0)/2)
SendMessage(GetDlgItem (hwndDlg, IDC_DRIVELIST), LVM_SCROLL, 0, 10000);
}
+ else
+ {
+ SendMessage(hwndDlg, WM_NEXTDLGCTL, (WPARAM) GetDlgItem (hwndDlg, IDC_DRIVELIST), 1L);
+ }
SendMessage (GetDlgItem (hwndDlg, IDC_NO_HISTORY), BM_SETCHECK, bHistory ? BST_UNCHECKED : BST_CHECKED, 0);
EnableDisableButtons (hwndDlg);