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,6 +1037,11 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
{
|
||||
wchar_t fileName[MAX_PATH];
|
||||
GetWindowText (GetDlgItem (hwndDlg, IDC_VOLUME), fileName, ARRAYSIZE (fileName));
|
||||
if (!VolumePathExists (fileName))
|
||||
{
|
||||
handleWin32Error (hwndDlg, SRC_POS);
|
||||
}
|
||||
else
|
||||
ExpandVolumeWizard(hwndDlg, fileName);
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user