[shell32]

set first verb as default
fixes opening control panel applets by double click

svn path=/trunk/; revision=63424
This commit is contained in:
Christoph von Wittich 2014-05-23 17:28:39 +00:00
parent b3a2dbfc9a
commit a65891147d

View file

@ -600,8 +600,13 @@ CDefaultContextMenu::AddStaticContextMenusToMenu(
fState = MFS_ENABLED;
mii.dwTypeData = NULL;
/* set first entry as default */
if (pEntry == m_pStaticEntries)
fState |= MFS_DEFAULT;
if (!wcsicmp(pEntry->szVerb, L"open"))
{
/* override default when open verb is found */
fState |= MFS_DEFAULT;
idResource = IDS_OPEN_VERB;
}