VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-05 21:53:07 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 16:40:25 (GMT)
commit6e94286b39cbfab21f9ee43256e8b5667f6a11de (patch)
treecd9536eea371ad63fae4cd861519d3a6e0148fbb /src/Boot
parent041bc9dc0bfc9a16b19cfed9b59725d14bfef604 (diff)
downloadVeraCrypt-6e94286b39cbfab21f9ee43256e8b5667f6a11de.zip
VeraCrypt-6e94286b39cbfab21f9ee43256e8b5667f6a11de.tar.gz
Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM.
Diffstat (limited to 'src/Boot')
-rw-r--r--src/Boot/Windows/BootMain.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Boot/Windows/BootMain.cpp b/src/Boot/Windows/BootMain.cpp
index 57697a4..acae03a 100644
--- a/src/Boot/Windows/BootMain.cpp
+++ b/src/Boot/Windows/BootMain.cpp
@@ -581,7 +581,9 @@ err:
crypto_close (BootCryptoInfo);
BootCryptoInfo = NULL;
}
-
+#ifndef TC_WINDOWS_BOOT_RESCUE_DISK_MODE
+ PimValueOrHiddenVolumeStartUnitNo.LowPart = -1;
+#endif
EncryptedVirtualPartition.Drive = TC_INVALID_BIOS_DRIVE;
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
@@ -801,6 +803,7 @@ err:
GetKeyboardChar();
ret:
+ PimValueOrHiddenVolumeStartUnitNo.LowPart = -1;
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
return status;
}