mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-24 03:53:29 +01:00
Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM.
This commit is contained in:
parent
041bc9dc0b
commit
6e94286b39
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user