[SHELL32] Start Menu Customize: Fix bMustHideAdminTools (#6604)

Follow-up to #6603. Fix a bug in Admin Tools display.
JIRA issue: CORE-16956
Fix the value of bMustHideAdminTools in CMenuSFToolbar::FillToolbar.
This commit is contained in:
Katayama Hirofumi MZ 2024-03-12 08:26:07 +09:00 committed by GitHub
parent 7f8c502901
commit 57592b7e22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1377,7 +1377,7 @@ HRESULT CMenuSFToolbar::FillToolbar(BOOL clearFirst)
L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
L"StartMenuAdminTools", FALSE, TRUE);
BOOL bMustHideAdminTools = IsPidlPrograms(m_idList) && StartMenuAdminTools;
BOOL bMustHideAdminTools = IsPidlPrograms(m_idList) && !StartMenuAdminTools;
TRACE("StartMenuAdminTools: %d\n", StartMenuAdminTools);
TRACE("bMustHideAdminTools: %d\n", bMustHideAdminTools);