Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM.

This commit is contained in:
Mounir IDRASSI 2016-10-05 23:53:07 +02:00
parent 041bc9dc0b
commit 6e94286b39
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -581,7 +581,9 @@ static byte BootEncryptedDrive ()
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 @@ static bool CopySystemPartitionToHiddenVolume (byte drive, byte &exitKey)
GetKeyboardChar();
ret:
PimValueOrHiddenVolumeStartUnitNo.LowPart = -1;
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
return status;
}