[SHELL32] Disable the Hardware tab in the properties dialog for Network drives (#1249)

This matches Windows behaviour.
This commit is contained in:
Jared Smudde 2019-03-16 09:37:56 -05:00 committed by Hermès BÉLUSCA - MAÏTO
parent c669003418
commit 6707efc534

View file

@ -648,12 +648,15 @@ CDrvDefExt::AddPages(LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
pfnAddPage(hPage, lParam);
}
hPage = SH_CreatePropertySheetPage(IDD_DRIVE_HARDWARE,
HardwarePageProc,
(LPARAM)this,
NULL);
if (hPage)
pfnAddPage(hPage, lParam);
if (GetDriveTypeW(m_wszDrive) != DRIVE_REMOTE)
{
hPage = SH_CreatePropertySheetPage(IDD_DRIVE_HARDWARE,
HardwarePageProc,
(LPARAM)this,
NULL);
if (hPage)
pfnAddPage(hPage, lParam);
}
return S_OK;
}