VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Mount/Mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index ca52178f..fe4d5605 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -7980,7 +7980,8 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
if (VolumeSelected (hwndDlg)
&& IsMountedVolume (volPathLower))
{
- TranslateVolumeID (hwndDlg, volPathLower, ARRAYSIZE (volPathLower));
+ if (!TranslateVolumeID (hwndDlg, volPathLower, ARRAYSIZE (volPathLower)))
+ return 1;
if (LOWORD (selectedDrive) != TC_MLIST_ITEM_NONSYS_VOL)
{