Skip to content

Commit 2ed98b5

Browse files
authored
Fix erroneous 2 TiB limit for hidden file containers in GUI wizard (#1672)
1 parent 1ea0556 commit 2ed98b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Main/Forms/VolumeCreationWizard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ namespace VeraCrypt
973973
{
974974
if (SelectedVolumeType != VolumeType::Hidden || OuterVolume)
975975
{
976-
if (OuterVolume && VolumeSize > TC_MAX_FAT_SECTOR_COUNT * SectorSize)
976+
if (SelectedVolumePath.IsDevice() && OuterVolume && VolumeSize > TC_MAX_FAT_SECTOR_COUNT * SectorSize)
977977
{
978978
uint64 limit = TC_MAX_FAT_SECTOR_COUNT * SectorSize / BYTES_PER_TB;
979979
wstring err = static_cast<wstring>(StringFormatter (LangString["LINUX_ERROR_SIZE_HIDDEN_VOL"], limit, limit * 1024));

0 commit comments

Comments
 (0)