diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-18 23:04:59 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-10-18 23:06:17 +0200 |
commit | 008d0503befa55311eb12dbca42a3df25c6f29a0 (patch) | |
tree | c6833aa593e57ef4c288eb9131d69066daff44ed /src/ExpandVolume/DlgExpandVolume.cpp | |
parent | 5b88a183ac297cbb7d332b23a6800bd4681da7db (diff) | |
download | VeraCrypt-008d0503befa55311eb12dbca42a3df25c6f29a0.tar.gz VeraCrypt-008d0503befa55311eb12dbca42a3df25c6f29a0.zip |
Windows: make VeraCrypt Expander able to resume expansion of volumes whose previous expansion was aborted before it finishes
Diffstat (limited to 'src/ExpandVolume/DlgExpandVolume.cpp')
-rw-r--r-- | src/ExpandVolume/DlgExpandVolume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ExpandVolume/DlgExpandVolume.cpp b/src/ExpandVolume/DlgExpandVolume.cpp index c1acd769..adc8fa0d 100644 --- a/src/ExpandVolume/DlgExpandVolume.cpp +++ b/src/ExpandVolume/DlgExpandVolume.cpp @@ -717,7 +717,7 @@ void ExpandVolumeWizard (HWND hwndDlg, wchar_t *lpszVolume) if ( !bIsDevice ) { - if ( newVolumeSize < hostSize + TC_MINVAL_FS_EXPAND) + if ( (newVolumeSize < hostSize + TC_MINVAL_FS_EXPAND) && ((hostSize == volSize) || (newVolumeSize != hostSize) || ((hostSize - volSize) < TC_MINVAL_FS_EXPAND))) { StringCbPrintfW(szTmp,sizeof(szTmp),L"New volume size too small, must be at least %I64u kB larger than the current size.",TC_MINVAL_FS_EXPAND/BYTES_PER_KB); MessageBoxW (hwndDlg, szTmp, lpszTitle, MB_OK | MB_ICONEXCLAMATION ); |