mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows: in silent mode, don't show the wait dialog during mount operation
This commit is contained in:
@@ -6363,6 +6363,8 @@ retry:
|
|||||||
mount.bPartitionInInactiveSysEncScope = TRUE;
|
mount.bPartitionInInactiveSysEncScope = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!quiet)
|
||||||
|
{
|
||||||
MountThreadParam threadParam;
|
MountThreadParam threadParam;
|
||||||
threadParam.hwnd = hwndDlg;
|
threadParam.hwnd = hwndDlg;
|
||||||
threadParam.pmount = &mount;
|
threadParam.pmount = &mount;
|
||||||
@@ -6372,6 +6374,12 @@ retry:
|
|||||||
DialogBoxParamW (hInst,
|
DialogBoxParamW (hInst,
|
||||||
MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), hwndDlg,
|
MAKEINTRESOURCEW (IDD_STATIC_MODAL_WAIT_DLG), hwndDlg,
|
||||||
(DLGPROC) MountWaitDlgProc, (LPARAM) &threadParam);
|
(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.VolumePassword, sizeof (mount.VolumePassword));
|
||||||
burn (&mount.ProtectedHidVolPassword, sizeof (mount.ProtectedHidVolPassword));
|
burn (&mount.ProtectedHidVolPassword, sizeof (mount.ProtectedHidVolPassword));
|
||||||
|
|||||||
Reference in New Issue
Block a user