From a6c7ba1f4a81ddedd960c3903c8d96bb35de21ff Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Sun, 30 Sep 2007 16:27:55 +0000 Subject: [PATCH] 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. svn path=/trunk/; revision=29318 --- reactos/base/applications/taskmgr/taskmgr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/base/applications/taskmgr/taskmgr.c b/reactos/base/applications/taskmgr/taskmgr.c index 8dcd42a802a..89a82f8eeb4 100644 --- a/reactos/base/applications/taskmgr/taskmgr.c +++ b/reactos/base/applications/taskmgr/taskmgr.c @@ -719,6 +719,13 @@ void LoadSettings(void) 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); }