VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-05 23:53:07 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:40:25 +0200
commit6e94286b39cbfab21f9ee43256e8b5667f6a11de (patch)
treecd9536eea371ad63fae4cd861519d3a6e0148fbb
parent041bc9dc0bfc9a16b19cfed9b59725d14bfef604 (diff)
downloadVeraCrypt-6e94286b39cbfab21f9ee43256e8b5667f6a11de.tar.gz
VeraCrypt-6e94286b39cbfab21f9ee43256e8b5667f6a11de.zip
Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM.
-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 57697a4f..acae03a9 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;
}