1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: Implement support for mounting partially encrypted system partitions

For now, we force ReadOnly mounting for such partitions.
This commit is contained in:
Mounir IDRASSI
2023-08-13 22:50:37 +02:00
parent 8c7962bda7
commit f84d235cf1
7 changed files with 34 additions and 5 deletions

View File

@@ -9253,6 +9253,17 @@ retry:
}
}
if (mount.VolumeMountedReadOnlyAfterPartialSysEnc
&& !Silent
&& bDevice)
{
wchar_t msg[1024];
wchar_t mountPoint[] = { L'A' + (wchar_t) driveNo, L':', 0 };
StringCbPrintfW (msg, sizeof(msg), GetString ("PARTIAL_SYSENC_MOUNT_READONLY"), mountPoint);
WarningDirect (msg, hwndDlg);
}
if (mount.wszLabel[0] && !mount.bDriverSetLabel)
{
// try setting the drive label on user-mode using registry