
ĞxceptionHandlerThreadArgs *args = (ExceptionHandlerThreadArgs *) threadArg void ExceptionHandlerThread (void *threadArg) codeEnd = (size_t) mi.BaseAddress + mi.RegionSize if (sectorsRemaining.HighPart = 0 & sectorsRemaining.LowPart = sizeof (mi)) Print ("\rIf aborted, copying will have to start from the beginning (if attempted again).\r\n") while (sectorsRemaining.HighPart != 0 || sectorsRemaining.LowPart != 0) Print ("\r\nCopying system to hidden volume. if (!(sectorsRemaining = ActivePartition.SectorCount)) sectorsRemaining = EncryptedVirtualPartition.SectorCount

if (!MountVolume (drive, exitKey, true, false)) Print (IsLbaSupported (PartitionFollowingActive.Drive) ? " due to a bug" : "\r\n- Enable LBA in BIOS") PrintErrorNoEndl ("Your BIOS does not support large drives") || GetCrc32 (SectorBuffer, sizeof (SectorBuffer)) != OuterVolumeBackupHeaderCrc) if (ReadSectors (SectorBuffer, PartitionFollowingActive.Drive, PartitionFollowingActive.EndSector - (TC_VOLUME_HEADER_GROUP_SIZE / TC_LB_SIZE - 2), 1) != BiosResultSuccess Check if BIOS can read the last sector of the hidden system

if (PartitionFollowingActive.Drive = TC_INVALID_BIOS_DRIVE) int fragmentSectorCount = 0x7f // Maximum safe value supported by BIOS static bool CopySystemPartitionToHiddenVolume (byte drive, byte &exitKey) + Print ("WARNING: Using TrueCrypt is not secure") Diff -recursive -bu truecrypt-7.1a-source/Boot/Windows/BootMain.cpp truecrypt-7.2-source/Boot/Windows/BootMain.cpp
