mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Solve detection issue when resuming encryption. Add separate logic for manual selection of device and display error message in case of failure.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user