Fix erroneous 2 TiB limit for hidden file containers in GUI wizard (#1672)

This commit is contained in:
Ragdoll
2026-04-13 08:55:37 +01:00
committed by GitHub
parent 1ea0556cbe
commit 2ed98b50d3

View File

@@ -973,7 +973,7 @@ namespace VeraCrypt
{
if (SelectedVolumeType != VolumeType::Hidden || OuterVolume)
{
if (OuterVolume && VolumeSize > TC_MAX_FAT_SECTOR_COUNT * SectorSize)
if (SelectedVolumePath.IsDevice() && OuterVolume && VolumeSize > TC_MAX_FAT_SECTOR_COUNT * SectorSize)
{
uint64 limit = TC_MAX_FAT_SECTOR_COUNT * SectorSize / BYTES_PER_TB;
wstring err = static_cast<wstring>(StringFormatter (LangString["LINUX_ERROR_SIZE_HIDDEN_VOL"], limit, limit * 1024));