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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user