From 20c723e2426121eae0dc098f991f24e9abfb98c8 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 17 Aug 2016 14:53:12 +0200 Subject: Windows: correct handle failure of TranslateVolumeID function (should not happen anyway). --- src/Mount/Mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3