Author: cwittich
Date: Fri May 23 17:28:39 2014
New Revision: 63424
URL:
http://svn.reactos.org/svn/reactos?rev=63424&view=rev
Log:
[shell32]
set first verb as default
fixes opening control panel applets by double click
Modified:
trunk/reactos/dll/win32/shell32/defcontextmenu.cpp
Modified: trunk/reactos/dll/win32/shell32/defcontextmenu.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/defconte…
==============================================================================
--- trunk/reactos/dll/win32/shell32/defcontextmenu.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/defcontextmenu.cpp [iso-8859-1] Fri May 23 17:28:39
2014
@@ -600,8 +600,13 @@
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;
}