mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows Bootloader: fix issue in copy process of hidden OS caused by use of wrong PIM.
This commit is contained in:
@@ -581,7 +581,9 @@ err:
|
|||||||
crypto_close (BootCryptoInfo);
|
crypto_close (BootCryptoInfo);
|
||||||
BootCryptoInfo = NULL;
|
BootCryptoInfo = NULL;
|
||||||
}
|
}
|
||||||
|
#ifndef TC_WINDOWS_BOOT_RESCUE_DISK_MODE
|
||||||
|
PimValueOrHiddenVolumeStartUnitNo.LowPart = -1;
|
||||||
|
#endif
|
||||||
EncryptedVirtualPartition.Drive = TC_INVALID_BIOS_DRIVE;
|
EncryptedVirtualPartition.Drive = TC_INVALID_BIOS_DRIVE;
|
||||||
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
|
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
|
||||||
|
|
||||||
@@ -801,6 +803,7 @@ err:
|
|||||||
GetKeyboardChar();
|
GetKeyboardChar();
|
||||||
|
|
||||||
ret:
|
ret:
|
||||||
|
PimValueOrHiddenVolumeStartUnitNo.LowPart = -1;
|
||||||
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
|
EraseMemory ((void *) TC_BOOT_LOADER_ARGS_OFFSET, sizeof (BootArguments));
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user