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

This commit is contained in:
Ragdoll authored and GitHub committed 2026-04-13 16:55:37 +09:00
1 parent 1ea0556cbe
commit 2ed98b50d3
1 file changed
+1 -1
+1 -1
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));