VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main/Forms/VolumeSizeWizardPage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/Forms/VolumeSizeWizardPage.cpp b/src/Main/Forms/VolumeSizeWizardPage.cpp
index 61427ea5..ce337620 100644
--- a/src/Main/Forms/VolumeSizeWizardPage.cpp
+++ b/src/Main/Forms/VolumeSizeWizardPage.cpp
@@ -79,7 +79,7 @@ namespace VeraCrypt
uint64 val;
if (UseAllFreeSpaceCheckBox->IsChecked ())
{
- val = AvailableDiskSpace;
+ val = MaxVolumeSizeValid ? MaxVolumeSize : AvailableDiskSpace;
}
else
{