VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 14:53:12 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 17:06:18 +0200
commit20c723e2426121eae0dc098f991f24e9abfb98c8 (patch)
tree4c3510bfba6d5daed1877195661b3b7d6e75dff1 /src
parent3ddb499280abd190f0350678c63b0e6c2a88b5bd (diff)
downloadVeraCrypt-20c723e2426121eae0dc098f991f24e9abfb98c8.tar.gz
VeraCrypt-20c723e2426121eae0dc098f991f24e9abfb98c8.zip
Windows: correct handle failure of TranslateVolumeID function (should not happen anyway).
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)
{