mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows: in silent mode, don't show the wait dialog during mount operation
This commit is contained in:
parent
5b151492bd
commit
c98400a2b7
@ -6363,15 +6363,23 @@ int MountVolume (HWND hwndDlg,
|
||||
mount.bPartitionInInactiveSysEncScope = TRUE;
|
||||
}
|
||||
|
||||
MountThreadParam threadParam;
|
||||
threadParam.hwnd = hwndDlg;
|
||||
threadParam.pmount = &mount;
|
||||
threadParam.pbResult = &bResult;
|
||||
threadParam.pdwResult = &dwResult;
|
||||
if (!quiet)
|
||||
{
|
||||
MountThreadParam threadParam;
|
||||
threadParam.hwnd = hwndDlg;
|
||||
threadParam.pmount = &mount;
|
||||
threadParam.pbResult = &bResult;
|
||||
threadParam.pdwResult = &dwResult;
|
||||
|
||||
DialogBoxParamW (hInst,
|
||||
MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), hwndDlg,
|
||||
(DLGPROC) MountWaitDlgProc, (LPARAM) &threadParam);
|
||||
DialogBoxParamW (hInst,
|
||||
MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), hwndDlg,
|
||||
(DLGPROC) MountWaitDlgProc, (LPARAM) &threadParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
bResult = DeviceIoControl (hDriver, TC_IOCTL_MOUNT_VOLUME, &mount,
|
||||
sizeof (mount), &mount, sizeof (mount), &dwResult, NULL);
|
||||
}
|
||||
|
||||
burn (&mount.VolumePassword, sizeof (mount.VolumePassword));
|
||||
burn (&mount.ProtectedHidVolPassword, sizeof (mount.ProtectedHidVolPassword));
|
||||
|
Loading…
Reference in New Issue
Block a user