VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/ExpandVolume/DlgExpandVolume.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-22 01:12:32 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-26 17:44:09 +0200
commitf41be7399b414da60ab5eec2a84aedf5e77ae00e (patch)
tree359d4db2c8f6f5b337215ea7279a3bf2ac24da26 /src/ExpandVolume/DlgExpandVolume.cpp
parent307568f631dd792780cb552b8eafcd91bd8c651c (diff)
downloadVeraCrypt-f41be7399b414da60ab5eec2a84aedf5e77ae00e.tar.gz
VeraCrypt-f41be7399b414da60ab5eec2a84aedf5e77ae00e.zip
Windows: Support specifying volumes size using TB in GUI as it is the case in command line.
Diffstat (limited to 'src/ExpandVolume/DlgExpandVolume.cpp')
-rw-r--r--src/ExpandVolume/DlgExpandVolume.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ExpandVolume/DlgExpandVolume.cpp b/src/ExpandVolume/DlgExpandVolume.cpp
index 267e859e..21d1f836 100644
--- a/src/ExpandVolume/DlgExpandVolume.cpp
+++ b/src/ExpandVolume/DlgExpandVolume.cpp
@@ -91,6 +91,6 @@ int GetSpaceString(char *dest, size_t maxlen, uint64 size, BOOL bDevice)
void SetCurrentVolSize(HWND hwndDlg, uint64 size)
{
- const uint64 Muliplier[] = {BYTES_PER_KB, BYTES_PER_MB, BYTES_PER_GB};
- const int IdRadioBtn[] = {IDC_KB, IDC_MB, IDC_GB};
+ const uint64 Muliplier[] = {BYTES_PER_KB, BYTES_PER_MB, BYTES_PER_GB, BYTES_PER_TB};
+ const int IdRadioBtn[] = {IDC_KB, IDC_MB, IDC_GB, IDC_TB};
const int nMaxSuffix = sizeof(Muliplier)/sizeof(uint64) - 1;
int i;
@@ -108,6 +108,6 @@ void SetCurrentVolSize(HWND hwndDlg, uint64 size)
uint64 GetSizeBoxMultiplier(HWND hwndDlg)
{
- const uint64 Muliplier[] = {BYTES_PER_KB, BYTES_PER_MB, BYTES_PER_GB};
- const int IdRadioBtn[] = {IDC_KB, IDC_MB, IDC_GB};
+ const uint64 Muliplier[] = {BYTES_PER_KB, BYTES_PER_MB, BYTES_PER_GB, BYTES_PER_TB};
+ const int IdRadioBtn[] = {IDC_KB, IDC_MB, IDC_GB, IDC_TB};
const int nMaxSuffix = sizeof(Muliplier)/sizeof(uint64) - 1;
int i;
@@ -136,4 +136,5 @@ BOOL CALLBACK ExpandVolSizeDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
EnableWindow (GetDlgItem (hwndDlg, IDC_MB), !pVolExpandParam->bIsDevice);
EnableWindow (GetDlgItem (hwndDlg, IDC_GB), !pVolExpandParam->bIsDevice);
+ EnableWindow (GetDlgItem (hwndDlg, IDC_TB), !pVolExpandParam->bIsDevice);
EnableWindow (GetDlgItem (hwndDlg, IDC_INIT_NEWSPACE),