[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); pfnAddPage(hPage, lParam);
} }
hPage = SH_CreatePropertySheetPage(IDD_DRIVE_HARDWARE, if (GetDriveTypeW(m_wszDrive) != DRIVE_REMOTE)
HardwarePageProc, {
(LPARAM)this, hPage = SH_CreatePropertySheetPage(IDD_DRIVE_HARDWARE,
NULL); HardwarePageProc,
if (hPage) (LPARAM)this,
pfnAddPage(hPage, lParam); NULL);
if (hPage)
pfnAddPage(hPage, lParam);
}
return S_OK; return S_OK;
} }