diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-08-13 22:50:37 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-08-13 22:50:37 +0200 |
commit | f84d235cf17a92bb51031833da502660d364013f (patch) | |
tree | 4fd5284f0b5f83d6f7ba9d3d8f5e2700f904ca39 /src/Common/Dlgcode.c | |
parent | 8c7962bda7ea260049226fe99a351675fd0780a2 (diff) | |
download | VeraCrypt-f84d235cf17a92bb51031833da502660d364013f.tar.gz VeraCrypt-f84d235cf17a92bb51031833da502660d364013f.zip |
Windows: Implement support for mounting partially encrypted system partitions
For now, we force ReadOnly mounting for such partitions.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 6739a7a3..a9be17c9 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -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 |