mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 04:13:35 +00:00
[shell32]
set first verb as default fixes opening control panel applets by double click svn path=/trunk/; revision=63424
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user