Windows: Display Volume ID of a System Favorite even if it is disconnected

This commit is contained in:
Mounir IDRASSI 2016-04-24 01:00:02 +02:00
parent 0163dfdcab
commit 32b42cff14
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ namespace VeraCrypt
static void SetControls (HWND hwndDlg, const FavoriteVolume &favorite, bool systemFavoritesMode, bool enable)
{
BOOL bIsDevice = IsVolumeDeviceHosted (favorite.Path.c_str()) || !enable;
BOOL bIsDevice = favorite.DisconnectedDevice || IsVolumeDeviceHosted (favorite.Path.c_str()) || !enable;
if (favorite.Pim > 0)
{
wchar_t szTmp[MAX_PIM + 1];