https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6707efc5346e1cdaad367…
commit 6707efc5346e1cdaad367422b850275329e6c885
Author: Jared Smudde <computerwhiz02(a)hotmail.com>
AuthorDate: Sat Mar 16 09:37:56 2019 -0500
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Mar 16 15:37:56 2019 +0100
[SHELL32] Disable the Hardware tab in the properties dialog for Network drives
(#1249)
This matches Windows behaviour.
---
dll/win32/shell32/dialogs/drvdefext.cpp | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/dll/win32/shell32/dialogs/drvdefext.cpp
b/dll/win32/shell32/dialogs/drvdefext.cpp
index ef4c2c6b7c..09e1796583 100644
--- a/dll/win32/shell32/dialogs/drvdefext.cpp
+++ b/dll/win32/shell32/dialogs/drvdefext.cpp
@@ -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;
}