Author: mjansen
Date: Wed Aug 31 21:15:57 2016
New Revision: 72526
URL:
http://svn.reactos.org/svn/reactos?rev=72526&view=rev
Log:
[SHELL32] Disable some controls for a network drive. Patch by Jared Smudde. CORE-11897
#resolve #comment Thanks!
Modified:
trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp [iso-8859-1] Wed Aug 31 21:15:57
2016
@@ -309,16 +309,16 @@
default: IconId = IDI_SHELL_DRIVE; TypeStrId = IDS_DRIVE_FIXED;
}
- if (DriveType == DRIVE_CDROM)
+ if (DriveType == DRIVE_CDROM || DriveType == DRIVE_REMOTE)
{
/* volume label textbox */
- EnableWindow(GetDlgItem(hwndDlg, 14000), false);
+ SendMessage(GetDlgItem(hwndDlg, 14000), EM_SETREADONLY, TRUE, 0);
/* disk compression */
- ShowWindow(GetDlgItem(hwndDlg, 14011), false);
+ ShowWindow(GetDlgItem(hwndDlg, 14011), FALSE);
/* index */
- ShowWindow(GetDlgItem(hwndDlg, 14012), false);
+ ShowWindow(GetDlgItem(hwndDlg, 14012), FALSE);
}
HICON hIcon = (HICON)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IconId),
IMAGE_ICON, 32, 32, LR_SHARED);