mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 14:03:29 +01:00
Windows: solve issue with system favorites not being able to mount at A:
This commit is contained in:
parent
3610d2c2ec
commit
7832d712fd
@ -4399,7 +4399,7 @@ static BOOL Mount (HWND hwndDlg, int nDosDriveNo, wchar_t *szFileName, int pim)
|
||||
|
||||
bPrebootPasswordDlgMode = mountOptions.PartitionInInactiveSysEncScope;
|
||||
|
||||
if (nDosDriveNo == 0)
|
||||
if (nDosDriveNo == -1)
|
||||
nDosDriveNo = HIWORD (GetSelectedLong (GetDlgItem (MainDlg, IDC_DRIVELIST))) - L'A';
|
||||
|
||||
if (!MultipleMountOperationInProgress)
|
||||
@ -4625,7 +4625,7 @@ void __cdecl mountThreadFunction (void *hwndDlgArg)
|
||||
EnableWindow(hwndDlg, FALSE);
|
||||
finally_do_arg2 (HWND, hwndDlg, BOOL, bIsForeground, { EnableWindow(finally_arg, TRUE); if (finally_arg2) BringToForeground (finally_arg); bPrebootPasswordDlgMode = FALSE;});
|
||||
|
||||
Mount (hwndDlg, 0, 0, -1);
|
||||
Mount (hwndDlg, -1, 0, -1);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
|
Loading…
Reference in New Issue
Block a user