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
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -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)
{