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
This commit is contained in:
Colin Finck 2007-09-30 16:27:55 +00:00
parent 1ab0310d71
commit a6c7ba1f4a

View file

@ -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);
}