VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Boot/Windows/BootMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Boot/Windows/BootMain.cpp')
-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;
}