Linux/MacOSX: Fix regression that limited the size available for hidden volumes

created on disk or partition.
This commit is contained in:
Mounir IDRASSI 2020-01-20 00:19:30 +01:00
parent f9572ea8f5
commit b0b149db83
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -103,7 +103,7 @@ namespace VeraCrypt
try try
{ {
uint64 uiVolumeSize = GetVolumeSize(); uint64 uiVolumeSize = GetVolumeSize();
if (uiVolumeSize >= MinVolumeSize && (!MaxVolumeSizeValid || uiVolumeSize <= MaxVolumeSize) && (CmdLine->ArgDisableFileSizeCheck || !AvailableDiskSpace || uiVolumeSize <= AvailableDiskSpace)) if (uiVolumeSize >= MinVolumeSize && (!MaxVolumeSizeValid || uiVolumeSize <= MaxVolumeSize) && (MaxVolumeSizeValid || CmdLine->ArgDisableFileSizeCheck || !AvailableDiskSpace || uiVolumeSize <= AvailableDiskSpace))
return true; return true;
} }
catch (...) { } catch (...) { }