1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Windows: correct handle failure of TranslateVolumeID function (should not happen anyway).

This commit is contained in:
Mounir IDRASSI
2016-08-17 14:53:12 +02:00
parent 3ddb499280
commit 20c723e242

View File

@@ -7980,7 +7980,8 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
if (VolumeSelected (hwndDlg) if (VolumeSelected (hwndDlg)
&& IsMountedVolume (volPathLower)) && IsMountedVolume (volPathLower))
{ {
TranslateVolumeID (hwndDlg, volPathLower, ARRAYSIZE (volPathLower)); if (!TranslateVolumeID (hwndDlg, volPathLower, ARRAYSIZE (volPathLower)))
return 1;
if (LOWORD (selectedDrive) != TC_MLIST_ITEM_NONSYS_VOL) if (LOWORD (selectedDrive) != TC_MLIST_ITEM_NONSYS_VOL)
{ {