mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue