From 6e94286b39cbfab21f9ee43256e8b5667f6a11de Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 5 Oct 2016 23:53:07 +0200 Subject: Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM. --- src/Boot/Windows/BootMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Boot') 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; } -- cgit v1.2.3