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