mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
[SHELL32] Disable the Hardware tab in the properties dialog for Network drives (#1249)
This matches Windows behaviour.
This commit is contained in:
parent
c669003418
commit
6707efc534
1 changed files with 9 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue