VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/ExpandVolume/WinMain.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-06 20:38:30 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-05-06 23:31:37 +0200
commitb3646b323763441359cb953ebd78ef22f9ce428e (patch)
tree47d9e483ba587d0708c7bb58bf0aabb0884a1feb /src/ExpandVolume/WinMain.cpp
parent061292130d7a5342077d8edb58600a538641cda1 (diff)
downloadVeraCrypt-b3646b323763441359cb953ebd78ef22f9ce428e.tar.gz
VeraCrypt-b3646b323763441359cb953ebd78ef22f9ce428e.zip
Windows: Solve detection issue when resuming encryption. Add separate logic for manual selection of device and display error message in case of failure.
Diffstat (limited to 'src/ExpandVolume/WinMain.cpp')
-rw-r--r--src/ExpandVolume/WinMain.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ExpandVolume/WinMain.cpp b/src/ExpandVolume/WinMain.cpp
index 658f89ec..68ef281c 100644
--- a/src/ExpandVolume/WinMain.cpp
+++ b/src/ExpandVolume/WinMain.cpp
@@ -796,8 +796,10 @@ static BOOL SelectContainer (HWND hwndDlg)
static BOOL SelectPartition (HWND hwndDlg)
{
+ RawDevicesDlgParam param;
+ param.pszFileName = szFileName;
int nResult = DialogBoxParamW (hInst, MAKEINTRESOURCEW (IDD_RAWDEVICES_DLG), hwndDlg,
- (DLGPROC) RawDevicesDlgProc, (LPARAM) & szFileName[0]);
+ (DLGPROC) RawDevicesDlgProc, (LPARAM) & param);
if (nResult == IDOK)
{
AddComboItem (GetDlgItem (hwndDlg, IDC_VOLUME), szFileName, bHistory);