diff options
-rw-r--r-- | src/ExpandVolume/WinMain.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ExpandVolume/WinMain.cpp b/src/ExpandVolume/WinMain.cpp index f1e7bfad..bcaaefa8 100644 --- a/src/ExpandVolume/WinMain.cpp +++ b/src/ExpandVolume/WinMain.cpp @@ -1036,9 +1036,14 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa else { wchar_t fileName[MAX_PATH]; GetWindowText (GetDlgItem (hwndDlg, IDC_VOLUME), fileName, ARRAYSIZE (fileName)); - ExpandVolumeWizard(hwndDlg, fileName); + if (!VolumePathExists (fileName)) + { + handleWin32Error (hwndDlg, SRC_POS); + } + else + ExpandVolumeWizard(hwndDlg, fileName); } return 1; } |