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 committed 2023-08-13 22:50:37 +02:00
1 parent 8c7962bda7
commit f84d235cf1
7 files changed
+34 -5

No files matched your search

+11
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