mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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:
parent
b3a2dbfc9a
commit
a65891147d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue