diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-06 20:38:30 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-06 23:31:37 +0200 |
commit | b3646b323763441359cb953ebd78ef22f9ce428e (patch) | |
tree | 47d9e483ba587d0708c7bb58bf0aabb0884a1feb /src/Mount | |
parent | 061292130d7a5342077d8edb58600a538641cda1 (diff) | |
download | VeraCrypt-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/Mount')
-rw-r--r-- | src/Mount/Mount.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c index f27c2d50..716f7926 100644 --- a/src/Mount/Mount.c +++ b/src/Mount/Mount.c @@ -4823,8 +4823,10 @@ BOOL SelectContainer (HWND hwndDlg) 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);
|