Author: cfinck
Date: Sun Sep 30 20:27:55 2007
New Revision: 29318
URL: http://svn.reactos.org/svn/reactos?rev=29318&view=rev
Log:
Ensure that the "Name" column in Task-Manager will always be shown, so a Registry setting can't influence it.
This is necessary as the "Name" column is currently greyed out in the Column Settings dialog, so the user should have no possibility to change that.
Patch by Carlo Bramini (carlo DOT bramix AT libero DOT it)
See issue #2217 for more details.
Modified:
trunk/reactos/base/applications/taskmgr/taskmgr.c
Modified: trunk/reactos/base/applications/taskmgr/taskmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.c (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.c Sun Sep 30 20:27:55 2007
@@ -719,6 +719,13 @@
dwSize = sizeof(TASKMANAGER_SETTINGS);
RegQueryValueEx(hKey, _T("Preferences"), NULL, NULL, (LPBYTE)&TaskManagerSettings, &dwSize);
+ /*
+ * ATM, the 'ImageName' column is always visible
+ * (and grayed in configuration dialog)
+ * This will avoid troubles if the registry gets corrupted.
+ */
+ TaskManagerSettings.Column_ImageName = TRUE;
+
/* Close the key */
RegCloseKey(hKey);
}