mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-21 21:30:48 -05:00
Fix erroneous 2 TiB limit for hidden file containers in GUI wizard (#1672)
This commit is contained in:
@@ -973,7 +973,7 @@ namespace VeraCrypt
|
|||||||
{
|
{
|
||||||
if (SelectedVolumeType != VolumeType::Hidden || OuterVolume)
|
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;
|
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));
|
wstring err = static_cast<wstring>(StringFormatter (LangString["LINUX_ERROR_SIZE_HIDDEN_VOL"], limit, limit * 1024));
|
||||||
|
|||||||
Reference in New Issue
Block a user