1
0
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:
Mounir IDRASSI
2016-10-05 23:53:07 +02:00
parent 041bc9dc0b
commit 6e94286b39

View File

@@ -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;
} }