mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: make Expander first check file existence before proceeding further
This commit is contained in:
@@ -1037,7 +1037,12 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
{
|
{
|
||||||
wchar_t fileName[MAX_PATH];
|
wchar_t fileName[MAX_PATH];
|
||||||
GetWindowText (GetDlgItem (hwndDlg, IDC_VOLUME), fileName, ARRAYSIZE (fileName));
|
GetWindowText (GetDlgItem (hwndDlg, IDC_VOLUME), fileName, ARRAYSIZE (fileName));
|
||||||
ExpandVolumeWizard(hwndDlg, fileName);
|
if (!VolumePathExists (fileName))
|
||||||
|
{
|
||||||
|
handleWin32Error (hwndDlg, SRC_POS);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ExpandVolumeWizard(hwndDlg, fileName);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user